separate messages for 50x errors

This commit is contained in:
Damien Elmes 2013-05-17 13:58:38 +09:00
parent da66844f6b
commit 273cb74e3d

View file

@ -144,9 +144,13 @@ the problem persists, please file a bug report.""")
Please upgrade to the latest version of Anki.""")
# 502 is technically due to the server restarting, but we reuse the
# error message
elif "502" in err or "503" in err or "504" in err:
elif "502" in err:
return _("AnkiWeb is under maintenance. Please try again in a few minutes.")
elif "503" in err:
return _("""\
AnkiWeb is too busy at the moment. Please try again in a few minutes.""")
elif "504" in err:
return _("504 gateway timeout error received. Please try temporarily disabling your antivirus.")
elif "409" in err:
return _("A previous sync failed; please try again in a few minutes.")
elif "10061" in err or "10013" in err: