From dab20c08c3f9ed5973584950d5486f59a4f058a4 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sat, 22 Feb 2020 10:43:07 +0100 Subject: [PATCH] Adding tests for SES (#129) * Adding tests for SES * Use Mocked responses * Minors * Bugfixes * cs --- Exception/Http/HttpExceptionTrait.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Exception/Http/HttpExceptionTrait.php b/Exception/Http/HttpExceptionTrait.php index 5d78455..0c85357 100644 --- a/Exception/Http/HttpExceptionTrait.php +++ b/Exception/Http/HttpExceptionTrait.php @@ -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 {