diff --git a/Zframework/json.lua b/Zframework/json.lua index fa725027..c66d5013 100644 --- a/Zframework/json.lua +++ b/Zframework/json.lua @@ -117,9 +117,8 @@ function json.encode(val) local a,b=pcall(encode,val) if a then return b - else + elseif LOG then LOG.print(text.jsonError..": "..(b or"uknErr"),"warn") - return end end @@ -348,8 +347,7 @@ function json.decode(str) local a,b=pcall(decode,str) if a then return b - else + elseif LOG then LOG.print(text.jsonError..": "..(b or"uknErr"),"warn") - return end end \ No newline at end of file