summaryrefslogtreecommitdiffstats
path: root/tupkg/client
diff options
context:
space:
mode:
authorsimo <simo>2005-12-18 01:17:58 +0100
committersimo <simo>2005-12-18 01:17:58 +0100
commit1c4883edbab3f6a59598f54c894f62fa8590cf28 (patch)
tree8f891d99623a6b6b73cbd760e789dbdaa31c84d5 /tupkg/client
parent70af7c7d5c5945039f494ca5f9e435bc515db18e (diff)
downloadaur-1c4883edbab3f6a59598f54c894f62fa8590cf28.tar.gz
aur-1c4883edbab3f6a59598f54c894f62fa8590cf28.tar.xz
More descriptive tupkg error message
Catch sql server connection death
Diffstat (limited to 'tupkg/client')
-rwxr-xr-xtupkg/client/tupkg3
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