Skip to content

Commit f9279d1

Browse files
authored
Merge pull request #46 from artjomsimon/master
mention received and expected response status code when failing
2 parents f418e25 + 30aeb1e commit f9279d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbstractRequester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function send()
210210
// Assert results
211211
if ($this->statusExpected != $statusReturned) {
212212
throw new StatusCodeNotMatchedException(
213-
"Status code not matched $statusReturned",
213+
"Status code not matched: Expected {$this->statusExpected}, got {$statusReturned}",
214214
$responseBody
215215
);
216216
}

0 commit comments

Comments
 (0)