From c43885b917f177e0cfe37996f35e65bc32e3d8e4 Mon Sep 17 00:00:00 2001 From: chrox Date: Wed, 3 Dec 2014 14:26:00 +0800 Subject: [PATCH] show debug info when JSON data cannot be decoded --- frontend/apps/reader/modules/readerdictionary.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/apps/reader/modules/readerdictionary.lua b/frontend/apps/reader/modules/readerdictionary.lua index 2c4bd6ac9..4ce6ed0ea 100644 --- a/frontend/apps/reader/modules/readerdictionary.lua +++ b/frontend/apps/reader/modules/readerdictionary.lua @@ -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 = { {