return 1 if transport open fails
authorRoger Meier <roger@apache.org>
Thu, 8 Dec 2011 13:20:12 +0000 (13:20 +0000)
committerRoger Meier <roger@apache.org>
Thu, 8 Dec 2011 13:20:12 +0000 (13:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1211868 13f79535-47bb-0310-9956-ffa450edef68

test/cpp/src/TestClient.cpp

index c1d6e07..ed560cb 100755 (executable)
@@ -229,7 +229,7 @@ int main(int argc, char** argv) {
       transport->open();
     } catch (TTransportException& ttx) {
       printf("Connect failed: %s\n", ttx.what());
-      continue;
+      return 1;
     }
 
     /**