From eaa2c4c903ef4079b4a11402a4315a839673c10c Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Thu, 22 May 2014 10:25:01 +0200 Subject: [PATCH] The errormessage from the API should be nicer --- htdocs/zones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/zones.php b/htdocs/zones.php index 8b46116..c1c0888 100644 --- a/htdocs/zones.php +++ b/htdocs/zones.php @@ -35,7 +35,7 @@ function _do_curl($method, $opts = null, $type = 'post') { $return = curl_exec($ch); $json = json_decode($return, 1); if (isset($json['error'])) { - _jtable_respond(null, 'error', print_r($json,1)); + _jtable_respond(null, 'error', 'API Responds: '.$json['error']); } else { return $return; }