From 079af7acf9f2ac76a9424a9f2ccfbbfe9bff705a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 21 Jul 2018 10:20:24 +0530 Subject: [PATCH] Fix error reporting when file get fails --- src/pyj/read_book/db.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/db.pyj b/src/pyj/read_book/db.pyj index 3d50b6dafd..b7f691c965 100644 --- a/src/pyj/read_book/db.pyj +++ b/src/pyj/read_book/db.pyj @@ -301,10 +301,10 @@ class DB: # 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'