Skip to content
This repository was archived by the owner on Jul 29, 2020. It is now read-only.

Commit b5725b6

Browse files
committed
Do not loose any error messages
1 parent 1f4dca4 commit b5725b6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/FlexiPeeHP/FlexiBeeRO.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,10 @@ public function parseError(array $responseDecoded)
10331033
{
10341034
if (array_key_exists('results', $responseDecoded)) {
10351035
$this->errors = $responseDecoded['results'][0]['errors'];
1036+
foreach ($this->errors as $errorInfo) {
1037+
$this->addStatusMessage($errorInfo['message'].' "'.$errorInfo['for'].'" = '.$errorInfo['value'],
1038+
'error');
1039+
}
10361040
} else {
10371041
if (array_key_exists('message', $responseDecoded)) {
10381042
$this->errors = [['message' => $responseDecoded['message']]];

0 commit comments

Comments
 (0)