Skip to content

Commit dab20c0

Browse files
authored
Adding tests for SES (#129)
* Adding tests for SES * Use Mocked responses * Minors * Bugfixes * cs
1 parent dd9d51a commit dab20c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Exception/Http/HttpExceptionTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ public function __construct(ResponseInterface $response)
7878
// see RFC 7807 and https://jsonapi.org/format/#error-objects
7979
$separator = isset($body['title'], $body['detail']) ? "\n\n" : '';
8080
$message = ($body['title'] ?? '') . $separator . ($body['detail'] ?? '');
81+
} elseif (isset($body['message'])) {
82+
$this->awsMessage = $body['message'];
83+
$message .= "\n\n" . $body['message'] . "\n\n";
8184
}
8285
} else {
8386
try {

0 commit comments

Comments
 (0)