mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 02:26:39 +01:00
Fix error reporting when file get fails
This commit is contained in:
parent
2f915e33f6
commit
079af7acf9
1 changed files with 2 additions and 2 deletions
|
|
@ -301,10 +301,10 @@ def get_file(self, book, name, proceed):
|
|||
# File was not found in the cache, this happens in Chrome if
|
||||
# the Application Cache is full. IndexedDB put succeeds,
|
||||
# but get fails. Browsers are a horrible travesty.
|
||||
err += _(
|
||||
bad = err + _(
|
||||
' This usually means the cache is close to full. Clear the browser'
|
||||
' cache from the browser settings.')
|
||||
self.show_error(_('Cannot read file from book'), err)
|
||||
self.show_error(_('Cannot read file from book'), bad)
|
||||
return
|
||||
fdata = book.stored_files[key]
|
||||
mt = fdata.mimetype or 'application/octet-stream'
|
||||
|
|
|
|||
Loading…
Reference in a new issue