From 5dcf6560a9cbcd80f8234930b108d81df5091c6a Mon Sep 17 00:00:00 2001 From: Chris Brunner Date: Thu, 19 Nov 2009 20:03:03 +0000 Subject: [PATCH] actually quit the client when the server process is not running --- pandatool/src/mayaprogs/mayaToEgg_client.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandatool/src/mayaprogs/mayaToEgg_client.cxx b/pandatool/src/mayaprogs/mayaToEgg_client.cxx index 70351caa7a..119a869e19 100755 --- a/pandatool/src/mayaprogs/mayaToEgg_client.cxx +++ b/pandatool/src/mayaprogs/mayaToEgg_client.cxx @@ -44,7 +44,8 @@ int main(int argc, char *argv[]) { // Open a connection to the server process PT(Connection) con = prog.qManager->open_TCP_client_connection(prog.server,0); if (con.is_null()) { - nout << "port opened fail"; + nout << "Failed to open port to server process.\nMake sure maya2egg_server is running on localhost\n"; + exit(1); } // Add this connection to the readers list