mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
improve sync error message
This commit is contained in:
parent
5540da95ef
commit
0a1658de24
1 changed files with 4 additions and 5 deletions
|
@ -49,12 +49,11 @@ class Sync(QThread):
|
||||||
msg=_("Please double-check your username/password.")
|
msg=_("Please double-check your username/password.")
|
||||||
elif error.data.get('status') == "oldVersion":
|
elif error.data.get('status') == "oldVersion":
|
||||||
msg=_("The sync protocol has changed. Please upgrade.")
|
msg=_("The sync protocol has changed. Please upgrade.")
|
||||||
else:
|
elif error.data.get('type') == 'noResponse':
|
||||||
msg=_("""\
|
msg=_("""\
|
||||||
Syncing failed. Please try again in a few minutes.
|
Couldn't contact Anki Online. Please check your internet connection.""")
|
||||||
If the problem persists, please report it on the forum.
|
else:
|
||||||
|
msg=_("Unknown error: %s" % `getattr(error, 'data')`)
|
||||||
Error: %s""" % `getattr(error, 'data')`)
|
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
def connect(self, *args):
|
def connect(self, *args):
|
||||||
|
|
Loading…
Reference in a new issue