diff options
author | Chris Kuethe <ckuethe@users.berlios.de> | 2010-04-08 19:57:30 -0700 |
---|---|---|
committer | Chris Kuethe <ckuethe@users.berlios.de> | 2010-04-08 19:57:30 -0700 |
commit | e1b19e53b9e74bb3405bdfdad5b834c8e92873cf (patch) | |
tree | 05a57a61ccd80b062fa93c2618e2a48611c9a28e /gpsd.php | |
parent | 783897c21aed9959cf41346143dd1c84f181becc (diff) | |
download | gpsd-e1b19e53b9e74bb3405bdfdad5b834c8e92873cf.tar.gz |
Output the non-decodable JSON in the error message
Signed-off-by: Chris Kuethe <ckuethe@users.berlios.de>
Diffstat (limited to 'gpsd.php')
-rw-r--r-- | gpsd.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -85,7 +85,7 @@ if (isset($_GET['imgdata']) && isset($_GET['op']) && ($_GET['op'] == 'view')){ } $GPS = json_decode($resp, true); if ($GPS === false){ - die("json_decode error..."); + die("json_decode error: $resp"); } } @@ -283,7 +283,7 @@ function gen_image($resp){ $GPS = json_decode($resp, true); if ($GPS['class'] != "POLL"){ - die("json_decode error..."); + die("json_decode error: $resp"); } $im = imageCreate($sz, $sz); |