fix media sanity fail being identified as normal sanity error

This commit is contained in:
Damien Elmes 2013-01-29 09:05:55 +09:00
parent 6c97ab3508
commit 073f129ab8
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ class Syncer(object):
self.col.rollback()
self.col.modSchema()
self.col.save()
raise Exception("sanity check failed")
raise Exception("collection sanity check failed")
# finalize
runHook("sync", "finalize")
mod = self.server.finish()

View File

@ -134,7 +134,7 @@ AnkiWeb is too busy at the moment. Please try again in a few minutes.""")
"Antivirus or firewall software is preventing Anki from connecting to the internet.")
elif "407" in err:
return _("Proxy authentication required.")
elif "sanity check failed" in err:
elif "collection sanity check failed" in err:
return _("After syncing, the collection was in an inconsistent \
state. To fix this problem, Anki will force a full sync. Please sync again, and \
choose which side you would like to keep.")