From 1c4883edbab3f6a59598f54c894f62fa8590cf28 Mon Sep 17 00:00:00 2001 From: simo Date: Sun, 18 Dec 2005 00:17:58 +0000 Subject: More descriptive tupkg error message Catch sql server connection death --- tupkg/client/tupkg | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tupkg/client') diff --git a/tupkg/client/tupkg b/tupkg/client/tupkg index c4806c9..021e647 100755 --- a/tupkg/client/tupkg +++ b/tupkg/client/tupkg @@ -87,6 +87,9 @@ class ClientSocket: reply = self.readMsg(1) if reply['result'] == ["PASS"]: return 1 + elif reply['result'] == ["SQLERR"]: + print "SQL server-side error" + return 0 else: return 0 -- cgit v1.2.3-54-g00ecf