mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
show debug info when JSON data cannot be decoded
This commit is contained in:
@@ -76,6 +76,7 @@ function ReaderDictionary:stardictLookup(word, box)
|
||||
--DEBUG("lookup result table:", word, results)
|
||||
self:showDict(word, tidy_markup(results), box)
|
||||
else
|
||||
DEBUG("JSON data cannot be decoded", results)
|
||||
-- dummy results
|
||||
results = {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user