We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cadedbf commit aa4effeCopy full SHA for aa4effe
lib/triagens/ArangoDb/Connection.php
@@ -293,8 +293,8 @@ public function parseResponse(HttpResponse $response)
293
if ($body != '') {
294
// check if we can find details in the response body
295
$details = json_decode($body, true);
296
- if (is_array($details)) {
297
- // yes, we got details
+ if (is_array($details) && isset($details["errorMessage"])) {
+ // yes, we got details
298
$exception = new ServerException($details["errorMessage"], $details["code"]);
299
$exception->setDetails($details);
300
throw $exception;
0 commit comments