[chore] Show FileManager in case of showReaderCoroutine failure

Same as https://github.com/koreader/koreader/pull/2956.

Fixes https://github.com/koreader/koreader/issues/4928.
pull/4932/head
Frans de Jonge 5 years ago committed by Qingping Hou
parent 39b48d56c0
commit 8882cdf0c5

@ -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

Loading…
Cancel
Save