Skip to content

Commit

Permalink
add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo committed Dec 12, 2023
1 parent cfa60bc commit 786a36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-mondido-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function send_request($method, $path, $context, $query, $body) {
}

if (json_last_error() !== JSON_ERROR_NONE) {
$error->add($context, 'invalid response data', json_last_error_msg());
$error->add($context, 'invalid response data: ' . $response['response']['code'] . ' ' . json_last_error_msg() . ' ' . $response['body'], json_last_error_msg());
}

if (!$error->has_errors()) {
Expand Down

0 comments on commit 786a36b

Please sign in to comment.