Skip to content
Permalink
Browse files

[chore] Show FileManager in case of showReaderCoroutine failure

Same as #2956.

Fixes #4928.
  • Loading branch information...
Frenzie authored and houqp committed Apr 16, 2019
1 parent 39b48d5 commit 8882cdf0c539466652a8d2d8bb874a559faf4593
Showing with 4 additions and 1 deletion.
  1. +4 −1 frontend/apps/reader/readerui.lua
@@ -478,7 +478,10 @@ function ReaderUI:showReaderCoroutine(file, provider)
if err ~= nil or ok == false then
io.stderr:write('[!] doShowReader coroutine crashed:\n')
io.stderr:write(debug.traceback(co, err, 1))
UIManager:quit()
UIManager:show(InfoMessage:new{
text = _("No reader engine for this file or invalid file.")
})
self:showFileManager()
end
end)
end

0 comments on commit 8882cdf

Please sign in to comment.
You can’t perform that action at this time.