Skip to content

Commit

Permalink
Merge pull request #46 from artjomsimon/master
Browse files Browse the repository at this point in the history
mention received and expected response status code when failing
  • Loading branch information
byjg committed Apr 3, 2020
2 parents f418e25 + 30aeb1e commit f9279d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractRequester.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function send()
// Assert results
if ($this->statusExpected != $statusReturned) {
throw new StatusCodeNotMatchedException(
"Status code not matched $statusReturned",
"Status code not matched: Expected {$this->statusExpected}, got {$statusReturned}",
$responseBody
);
}
Expand Down

0 comments on commit f9279d1

Please sign in to comment.