diff options
author | simo <simo> | 2005-12-18 01:17:58 +0100 |
---|---|---|
committer | simo <simo> | 2005-12-18 01:17:58 +0100 |
commit | 1c4883edbab3f6a59598f54c894f62fa8590cf28 (patch) | |
tree | 8f891d99623a6b6b73cbd760e789dbdaa31c84d5 /tupkg/client | |
parent | 70af7c7d5c5945039f494ca5f9e435bc515db18e (diff) | |
download | aur-1c4883edbab3f6a59598f54c894f62fa8590cf28.tar.gz aur-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 c4806c9f..021e647b 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 |