mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[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.
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user