mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Specific error message if file being tweaked does not exist
This commit is contained in:
parent
f1fc5598b0
commit
3447684c5e
@ -121,6 +121,9 @@ class Boss(QObject):
|
||||
_('Tweaking is only supported for books in the %s formats.'
|
||||
' Convert your book to one of these formats first.') % _(' and ').join(sorted(SUPPORTED)),
|
||||
show=True)
|
||||
if not os.path.exists(path):
|
||||
return error_dialog(self.gui, _('File not found'), _(
|
||||
'The file %s does not exist.') % path, show=True)
|
||||
|
||||
for name in tuple(editors):
|
||||
self.close_editor(name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user