2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

show debug info when JSON data cannot be decoded

This commit is contained in:
chrox 2014-12-03 14:26:00 +08:00
parent 846836dceb
commit c43885b917

View File

@ -76,6 +76,7 @@ function ReaderDictionary:stardictLookup(word, box)
--DEBUG("lookup result table:", word, results) --DEBUG("lookup result table:", word, results)
self:showDict(word, tidy_markup(results), box) self:showDict(word, tidy_markup(results), box)
else else
DEBUG("JSON data cannot be decoded", results)
-- dummy results -- dummy results
results = { results = {
{ {