[Thrift] message debugging for std::exceptions
authorpfung <dev-null@apache.org>
Thu, 13 Dec 2007 22:30:47 +0000 (22:30 +0000)
committerpfung <dev-null@apache.org>
Thu, 13 Dec 2007 22:30:47 +0000 (22:30 +0000)
std::exceptions did not have debug messages printed

reviewed by dreiss
test plan: compiles

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665389 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/server/TThreadPoolServer.cpp

index 355bf8e..9f710f5 100644 (file)
@@ -54,6 +54,8 @@ public:
       //cerr << "TThreadPoolServer client died: " << ttx.what() << endl;
     } catch (TException& x) {
       cerr << "TThreadPoolServer exception: " << x.what() << endl;
+    } catch (std::exception &x) {
+      cerr << "TThreadPoolServer, std::exception: " << x.what() << endl;
     } catch (...) {
       cerr << "TThreadPoolServer uncaught exception." << endl;
     }