Skip to content

Commit e55723a

Browse files
committed
Better errors debug
1 parent c9bcdbf commit e55723a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AbraFlexi/RO.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,8 +1338,7 @@ public function parseResponse($responseDecoded, $responseCode)
13381338

13391339
if ($this->throwException) {
13401340
$errors = $this->getErrors();
1341-
1342-
throw new Exception(empty($errors) ? 'Problem ' : (\is_array($errors[0]) ? $errors[0]['message'] : $errors[0]), $this);
1341+
throw new Exception(empty($errors) ? 'Problem ' : ((\is_array($errors[0]) ? $errors[0]['message'] : $errors[0])).' '.$this->curlInfo['url'].' http error '.$this->lastResponseCode , $this);
13431342
}
13441343

13451344
$this->addStatusMessage($this->lastResponseCode.': '.$this->curlInfo['url'].' ('.$this->format.') '.json_encode($this->getErrors()), 'warning');

0 commit comments

Comments
 (0)