mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
More descriptive tupkg error message
Catch sql server connection death
This commit is contained in:
parent
70af7c7d5c
commit
1c4883edba
2 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue