cpp: Make the test server compatible with the Python test client
authorDavid Reiss <dreiss@apache.org>
Sat, 31 Jan 2009 21:39:11 +0000 (21:39 +0000)
committerDavid Reiss <dreiss@apache.org>
Sat, 31 Jan 2009 21:39:11 +0000 (21:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739629 13f79535-47bb-0310-9956-ffa450edef68

test/cpp/src/TestServer.cpp

index ce18aaf..602f454 100644 (file)
@@ -229,7 +229,7 @@ class TestHandler : public ThriftTestIf {
     if (arg.compare("Xception") == 0) {
       Xception e;
       e.errorCode = 1001;
-      e.message = "This is an Xception";
+      e.message = arg;
       throw e;
     } else if (arg.compare("ApplicationException") == 0) {
       facebook::thrift::TException e;