mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-05-06 22:32:22 +03:00
The errormessage from the API should be nicer
This commit is contained in:
parent
df6c7b3451
commit
eaa2c4c903
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue