THRIFT-1294. cpp: fix log message typos in TSimpleServer
authorBryan Duxbury <bryanduxbury@apache.org>
Thu, 25 Aug 2011 17:43:56 +0000 (17:43 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Thu, 25 Aug 2011 17:43:56 +0000 (17:43 +0000)
Patch: Adam Simpkins"

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

lib/cpp/src/server/TSimpleServer.cpp

index 0e5a967..229261f 100644 (file)
@@ -117,20 +117,23 @@ void TSimpleServer::serve() {
 
     try {
       inputTransport->close();
-    } catch (TTransportException& ttx) {
-      string errStr = string("TSimpleSimple input close failed: ") + ttx.what();
+    } catch (const TTransportException& ttx) {
+      string errStr = string("TSimpleServer input close failed: ")
+        + ttx.what();
       GlobalOutput(errStr.c_str());
     }
     try {
       outputTransport->close();
-    } catch (TTransportException& ttx) {
-      string errStr = string("TSimpleSimple output close failed: ") + ttx.what();
+    } catch (const TTransportException& ttx) {
+      string errStr = string("TSimpleServer output close failed: ")
+        + ttx.what();
       GlobalOutput(errStr.c_str());
     }
     try {
       client->close();
-    } catch (TTransportException& ttx) {
-      string errStr = string("TSimpleSimple client close failed: ") + ttx.what();
+    } catch (const TTransportException& ttx) {
+      string errStr = string("TSimpleServer client close failed: ")
+        + ttx.what();
       GlobalOutput(errStr.c_str());
     }
   }