mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix error reporting when file get fails
This commit is contained in:
parent
2f915e33f6
commit
079af7acf9
@ -301,10 +301,10 @@ class DB:
|
|||||||
# File was not found in the cache, this happens in Chrome if
|
# File was not found in the cache, this happens in Chrome if
|
||||||
# the Application Cache is full. IndexedDB put succeeds,
|
# the Application Cache is full. IndexedDB put succeeds,
|
||||||
# but get fails. Browsers are a horrible travesty.
|
# but get fails. Browsers are a horrible travesty.
|
||||||
err += _(
|
bad = err + _(
|
||||||
' This usually means the cache is close to full. Clear the browser'
|
' This usually means the cache is close to full. Clear the browser'
|
||||||
' cache from the browser settings.')
|
' cache from the browser settings.')
|
||||||
self.show_error(_('Cannot read file from book'), err)
|
self.show_error(_('Cannot read file from book'), bad)
|
||||||
return
|
return
|
||||||
fdata = book.stored_files[key]
|
fdata = book.stored_files[key]
|
||||||
mt = fdata.mimetype or 'application/octet-stream'
|
mt = fdata.mimetype or 'application/octet-stream'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user