Some thrift test code fixes
Reviewed By: tbr-testaditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665014 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/cpp/src/TestClient.cpp b/test/cpp/src/TestClient.cpp
index 3868456..e1110b4 100644
--- a/test/cpp/src/TestClient.cpp
+++ b/test/cpp/src/TestClient.cpp
@@ -102,9 +102,13 @@
/**
* VOID TEST
*/
- printf("testVoid()");
- testClient.testVoid();
- printf(" = void\n");
+ try {
+ printf("testVoid()");
+ testClient.testVoid();
+ printf(" = void\n");
+ } catch (TApplicationException tax) {
+ printf("%s\n", tax.what());
+ }
/**
* STRING TEST