[Thrift] message debugging for std::exceptions
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
diff --git a/lib/cpp/src/server/TThreadPoolServer.cpp b/lib/cpp/src/server/TThreadPoolServer.cpp
index 355bf8e..9f710f5 100644
--- a/lib/cpp/src/server/TThreadPoolServer.cpp
+++ b/lib/cpp/src/server/TThreadPoolServer.cpp
@@ -54,6 +54,8 @@
//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;
}