From 78ee85c911891231030f2045cb17f98530abf9d9 Mon Sep 17 00:00:00 2001 From: pfung Date: Thu, 13 Dec 2007 22:30:47 +0000 Subject: [PATCH] [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 --- lib/cpp/src/server/TThreadPoolServer.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.17.1