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 631af94 commit 0a2136eCopy full SHA for 0a2136e
CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
13
### Fixed
14
15
- Set MMS id on Bib object when initiated from SRU response.
16
+- Handle more error responses.
17
18
## [0.7.2] - 2018-11-09
19
src/Client.php
@@ -483,6 +483,9 @@ protected function parseClientError(HttpException $exception)
483
switch ($contentType) {
484
case 'application/json':
485
$res = json_decode($responseBody, true);
486
+ if (isset($res['web_service_result'])) {
487
+ $res = $res['web_service_result'];
488
+ }
489
$err = $res['errorList']['error'][0];
490
$message = $err['errorMessage'];
491
$code = $err['errorCode'];
0 commit comments