show debug info when JSON data cannot be decoded

pull/1328/head
chrox 10 years ago
parent 846836dceb
commit c43885b917

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

Loading…
Cancel
Save