diff options
author | simo <simo> | 2005-12-18 00:17:58 +0000 |
---|---|---|
committer | simo <simo> | 2005-12-18 00:17:58 +0000 |
commit | 1c4883edbab3f6a59598f54c894f62fa8590cf28 (patch) | |
tree | 8f891d99623a6b6b73cbd760e789dbdaa31c84d5 /tupkg/client | |
parent | 70af7c7d5c5945039f494ca5f9e435bc515db18e (diff) | |
download | aurweb-1c4883edbab3f6a59598f54c894f62fa8590cf28.tar.xz |
More descriptive tupkg error message
Catch sql server connection death
Diffstat (limited to 'tupkg/client')
-rwxr-xr-x | tupkg/client/tupkg | 3 |
1 files changed, 3 insertions, 0 deletions
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 |