Skip to content

Commit 92ea7a0

Browse files
committed
ENHANCE Error message from not found exception
1 parent 83fe9d0 commit 92ea7a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client/HttpExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ protected function getResponseMessage(ResponseInterface $response)
8282
$decodedBody = json_decode($responseBody->getContents(), true);
8383
$responseBody->rewind();
8484

85-
return $decodedBody['message'] ?? $response->getReasonPhrase();
85+
return $decodedBody['message'] ?? $response->getReasonPhrase() . ' - ' . $responseBody->getContents();
8686
}
8787
}

0 commit comments

Comments
 (0)