mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
improve sync error messages
This commit is contained in:
parent
060fbb788e
commit
ccc91b364e
1 changed files with 10 additions and 0 deletions
|
|
@ -73,6 +73,16 @@ class Sync(QThread):
|
||||||
self.emit(SIGNAL("badUserPass"))
|
self.emit(SIGNAL("badUserPass"))
|
||||||
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.")
|
||||||
|
elif error.data.get('type') == 'noResponse':
|
||||||
|
msg=_("""\
|
||||||
|
The server didn't reply. Please try again shortly, and if the problem \
|
||||||
|
persists, please report it on the forums.""")
|
||||||
|
elif error.data.get('type') == 'connectionError':
|
||||||
|
msg=_("""\
|
||||||
|
There was a connection error. If it persists, please try disabing your
|
||||||
|
firewall software temporarily, or try again from a different network.
|
||||||
|
|
||||||
|
Debugging info: %s""") % error.data.get("exc", "<none>")
|
||||||
else:
|
else:
|
||||||
tb = traceback.format_exc()
|
tb = traceback.format_exc()
|
||||||
if "missingFacts" in tb:
|
if "missingFacts" in tb:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue