From: pfung Date: Thu, 13 Dec 2007 22:30:47 +0000 (+0000) Subject: [Thrift] message debugging for std::exceptions X-Git-Tag: 0.2.0~1083 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=78ee85c911891231030f2045cb17f98530abf9d9;p=common%2Fthrift.git [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 355bf8e4..9f710f5e 100644 --- a/lib/cpp/src/server/TThreadPoolServer.cpp +++ b/lib/cpp/src/server/TThreadPoolServer.cpp @@ -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; }