Skip to content

Commit af3dfcd

Browse files
committed
Updated documentation on error handling
1 parent f7873e1 commit af3dfcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Currently the only provided locator is the `ContainerLocator` which accepts a
4747
return resolve($response);
4848
})->then(function (ResponseInterface $response) use ($runner) {
4949
return $runner->post($response);
50+
})->otherwise(function (Throwable $throwable) use ($runner) {
51+
return reject($runner->error($throwable));
5052
});
5153
```
5254

0 commit comments

Comments
 (0)