Skip to content

Commit

Permalink
Fixed issue with exception generation (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored Nov 13, 2022
1 parent 99a9d08 commit 337a241
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Exception/ValidationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ protected function populateResult(ResponseInterface $response): void
if (0 < $data->Error->count()) {
$data = $data->Error;
}
$this->message = (string) $data->message;
if (null !== $v = (($v = $data->message) ? (string) $v : null)) {
$this->message = $v;
}
}
}

0 comments on commit 337a241

Please sign in to comment.