mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 06:34:17 +02:00
Nicer error message when only failures are metadata updates
This commit is contained in:
parent
f1861cc526
commit
f7a7dd649d
1 changed files with 5 additions and 1 deletions
|
|
@ -263,7 +263,11 @@ def indent(text):
|
|||
def report(self):
|
||||
if not self.errors:
|
||||
return
|
||||
if len(self.errors) == len(self.all_book_ids):
|
||||
err_types = {e[0] for errors in self.errors.itervalues() for e in errors}
|
||||
if err_types == {'metadata'}:
|
||||
msg = _('Failed to update metadata in some books, click "Show details" for more information')
|
||||
d = warning_dialog
|
||||
elif len(self.errors) == len(self.all_book_ids):
|
||||
msg = _('Failed to save any books to disk, click "Show details" for more information')
|
||||
d = error_dialog
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue