Skip to content

Commit

Permalink
Also add workaround for csarrazi#6
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion authored Jan 15, 2018
1 parent 76dd297 commit 637cbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MockMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __invoke(callable $handler)
}

if (null === $response = $this->adapter->fetch($request)) {
return new RejectedPromise(sprintf(
return new RejectedPromise(new \RuntimeException(sprintf(
'Record not found for request: %s %s',
$request->getMethod(),
$request->getUri()
Expand Down

0 comments on commit 637cbb1

Please sign in to comment.