Skip to content

Commit

Permalink
Update json error syntax log
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapjansma authored Nov 28, 2024
1 parent 6abfd6d commit a37b1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMRF/Connection/AbstractCurlConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function executeCall(Call $call) {
} else {
$reply = json_decode($response, TRUE);
if (!is_array($reply)) {
$call->setStatus(Call::STATUS_FAILED, sprintf('JSON error: %s', json_last_error_msg()), json_last_error());
$call->setStatus(Call::STATUS_FAILED, sprintf('JSON error: %s response was: %s', json_last_error_msg(), $response), json_last_error());
return NULL;
} else {
$status = Call::STATUS_DONE;
Expand Down

0 comments on commit a37b1a2

Please sign in to comment.