summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2025-05-12 16:47:29 +0200
committerUrban Müller2025-05-12 16:47:29 +0200
commit9f2456c3e8122f739cee7d2654fd62a5d8931d8c (patch)
treeb0cd7cfd07d6f588a89ed53690d0adfc125a6ac2
parentf2225077d7450ea08f40ea45cc348184f1d30b97 (diff)
downloaditools-9f2456c3e8122f739cee7d2654fd62a5d8931d8c.tar.gz
itools-9f2456c3e8122f739cee7d2654fd62a5d8931d8c.tar.bz2
itools-9f2456c3e8122f739cee7d2654fd62a5d8931d8c.zip
need error message not error numberHEADmaster
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 5de9087..682c897 100644
--- a/it.class
+++ b/it.class
@@ -1266,7 +1266,7 @@ static function json_encode($data, $p = [])
*/
static function json_decode($json, $p = [])
{
- return ($data = json_decode($json, $p['assoc'])) === null && trim($json) != 'null' ? it::error((array)$p['it_error'] + ['title' => "invalid json: " . json_last_error(), 'body' => $json]) : $data;
+ return ($data = json_decode($json, $p['assoc'])) === null && trim($json) != 'null' ? it::error((array)$p['it_error'] + ['title' => "invalid json: " . json_last_error_msg(), 'body' => $json]) : $data;
}
/**