mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
if the document cannot be opened, function openFile(filename) shows a warning with specified error
This commit is contained in:
@@ -53,7 +53,7 @@ function openFile(filename)
|
||||
G_reader_settings:saveSetting("lastfile", filename)
|
||||
return reader:inputLoop()
|
||||
else
|
||||
InfoMessage:show("Error opening document.", 0)
|
||||
InfoMessage:show(err or "Error opening document.", 0)
|
||||
util.sleep(2)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user