Skip to content

Commit

Permalink
Adding tests for SES (#129)
Browse files Browse the repository at this point in the history
* Adding tests for SES

* Use Mocked responses

* Minors

* Bugfixes

* cs
  • Loading branch information
Nyholm authored Feb 22, 2020
1 parent dd9d51a commit dab20c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Exception/Http/HttpExceptionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public function __construct(ResponseInterface $response)
// see RFC 7807 and https://jsonapi.org/format/#error-objects
$separator = isset($body['title'], $body['detail']) ? "\n\n" : '';
$message = ($body['title'] ?? '') . $separator . ($body['detail'] ?? '');
} elseif (isset($body['message'])) {
$this->awsMessage = $body['message'];
$message .= "\n\n" . $body['message'] . "\n\n";
}
} else {
try {
Expand Down

0 comments on commit dab20c0

Please sign in to comment.