diff --git a/Client.php b/Client.php index 9b4bfb6..49ce991 100644 --- a/Client.php +++ b/Client.php @@ -448,8 +448,9 @@ protected function executeRequest() { } throw new Exception( - 'Bad Request: ' . implode( ' | ', - $parameter_errors ) . ' (request ' . $this->request->getFullUrl() . ').', + 'Bad Request ' . (isset($result_content->message)?$result_content->message:'unknown') . + ' Params: ' .implode( ' | ', $parameter_errors ) . + ' URL: ' . $this->request->getFullUrl(), $this->response->statusCode ); case 401: