Skip to content

Commit aa4effe

Browse files
committed
less notices
1 parent cadedbf commit aa4effe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/triagens/ArangoDb/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ public function parseResponse(HttpResponse $response)
293293
if ($body != '') {
294294
// check if we can find details in the response body
295295
$details = json_decode($body, true);
296-
if (is_array($details)) {
297-
// yes, we got details
296+
if (is_array($details) && isset($details["errorMessage"])) {
297+
// yes, we got details
298298
$exception = new ServerException($details["errorMessage"], $details["code"]);
299299
$exception->setDetails($details);
300300
throw $exception;

0 commit comments

Comments
 (0)