summaryrefslogtreecommitdiff
path: root/game/update.rpy
diff options
context:
space:
mode:
Diffstat (limited to 'game/update.rpy')
-rw-r--r--game/update.rpy10
1 files changed, 8 insertions, 2 deletions
diff --git a/game/update.rpy b/game/update.rpy
index dce899c..35992f8 100644
--- a/game/update.rpy
+++ b/game/update.rpy
@@ -405,7 +405,10 @@ label register:
del password, data
# Python end
if (r.status_code != 200):
- call screen notice(_("Vault returned error %d\n\nAutomatic login failed." % r.status_code))
+ if (r.status_code not in [401, 403]):
+ call screen notice(_("Vault returned error %d\n\nAutomatic login failed." % r.status_code))
+ else:
+ call screen notice(_("Vault returned error %d (incorrect login/password)\n\nAutomatic login failed." % r.status_code))
else:
$ stdout("Vault result: (%d) %s" % (r.status_code, ifte(config.developer, r.text, "OK")))
$ auth2 = r.json()
@@ -503,7 +506,10 @@ label register:
# Wait for Vault to confirm.
if (r.status_code != 200):
- call screen notice(_("Vault returned error %d\n\nPlease try again later." % r.status_code))
+ if (r.status_code not in [401, 403]):
+ call screen notice(_("Vault returned error %d\n\nPlease try again later." % r.status_code))
+ else:
+ call screen notice(_("Vault returned error %d (incorrect login/password)\n\nPlease try again later." % r.status_code))
return
# Check if we have success