mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
separate messages for 50x errors
This commit is contained in:
parent
da66844f6b
commit
273cb74e3d
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue