From 5f68c7161daf70b4f04f0157d8d0b265d729247a Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Fri, 11 May 2007 17:58:54 +0000 Subject: [PATCH] Fix messed up exception error printing Reviewed By: boz Test Plan: comes up in feed git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665107 13f79535-47bb-0310-9956-ffa450edef68 --- lib/cpp/src/transport/TSocket.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cpp/src/transport/TSocket.cpp b/lib/cpp/src/transport/TSocket.cpp index 95781f08..32fc2e77 100644 --- a/lib/cpp/src/transport/TSocket.cpp +++ b/lib/cpp/src/transport/TSocket.cpp @@ -274,7 +274,9 @@ uint32_t TSocket::read(uint8_t* buf, uint32_t len) { } // Some other error, whatevz - throw TTransportException(TTransportException::UNKNOWN, "ERROR:" + errno); + char buff[1024]; + sprintf(buff, "ERROR errno: %d", errno); + throw TTransportException(TTransportException::UNKNOWN, buff); } // The remote host has closed the socket -- 2.17.1