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.
2 parents 2f1c707 + a1e73bc commit 6f646afCopy full SHA for 6f646af
src/AbraFlexi/RO.php
@@ -1166,7 +1166,8 @@ public function parseResponse($responseDecoded, $responseCode) {
1166
}
1167
$this->addStatusMessage($this->lastResponseCode . ': ' . $this->curlInfo['url'] . ' (' . $this->format . ') ' . json_encode($this->getErrors()), 'warning');
1168
if ($this->throwException) {
1169
- throw new Exception('Problem', $this);
+ $errors = $this->getErrors();
1170
+ throw new Exception( empty($errors) ? 'Problem ' : $errors[0]['message'] , $this);
1171
1172
break;
1173
0 commit comments