summaryrefslogtreecommitdiff
path: root/gpsd.php
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@users.berlios.de>2010-04-08 19:57:30 -0700
committerChris Kuethe <ckuethe@users.berlios.de>2010-04-08 19:57:30 -0700
commite1b19e53b9e74bb3405bdfdad5b834c8e92873cf (patch)
tree05a57a61ccd80b062fa93c2618e2a48611c9a28e /gpsd.php
parent783897c21aed9959cf41346143dd1c84f181becc (diff)
downloadgpsd-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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.php b/gpsd.php
index 0910eeab..4a32c439 100644
--- a/gpsd.php
+++ b/gpsd.php
@@ -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);