Skip to content

Commit 30aeb1e

Browse files
committed
mention received and expected response status code when failing
1 parent f418e25 commit 30aeb1e

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)