catch 500 errors

This commit is contained in:
Damien Elmes 2011-12-16 10:37:18 +09:00
parent a2ce7c17ad
commit c121edf5d6

View file

@ -108,6 +108,10 @@ and try again.""")
return _("""\
The connection to AnkiWeb timed out. Please check your network \
connection and try again.""")
elif "500" in err:
return _("""\
AnkiWeb encountered an error. Please try again in a few minutes, and if \
the problem persists, please file a bug report.""")
elif "501" in err:
return _("""\
Please upgrade to the latest version of Anki.""")