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 7c65a22 commit bda20d6Copy full SHA for bda20d6
SAPb1/SAPException.php
@@ -19,7 +19,7 @@ public function __construct(Response $response){
19
}
20
21
if($response->getHeaders('Content-Type') == 'application/json'){
22
- $message = $response->getJson()->error->message->value;
+ $message = $response->getJson()->error->message->value ?? $response->getJson()->error->message;
23
$erroCode = $response->getJson()->error->code;
24
25
0 commit comments