Skip to content

Commit

Permalink
Merge pull request #1 from stefna/feature/unknown-response-code
Browse files Browse the repository at this point in the history
Add status code to unknown response exception
  • Loading branch information
sunkan authored Nov 7, 2023
2 parents 5692d3a + ec92cf5 commit bf835c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exceptions/UnknownResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class UnknownResponse extends \RuntimeException implements OpenApiResponse

public function __construct(ResponseInterface $response)
{
parent::__construct('Unknown response');
parent::__construct(sprintf('Unknown response (Status Code: %d)', $response->getStatusCode()));
$this->response = $response;
}

Expand Down

0 comments on commit bf835c2

Please sign in to comment.