Skip to content

Commit

Permalink
📝 Fix .catcher documentation typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Mar 27, 2019
1 parent a5209d0 commit 2b98d6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -438,7 +438,11 @@ const w = wretch()
w.url("http://myapi.com/get/something").get().json(json => /* ... */)

// Default catchers can be overridden if needed.
w.url("...").notFound(err => /* overrides the default 'redirect' catcher */)
w
.url("http://myapi.com/get/something")
.get()
.notFound(err => /* overrides the default 'redirect' catcher */)
.json(json => /* ... */)
```

The original request is passed along the error and can be used in order to perform an additional request.
Expand Down

0 comments on commit 2b98d6b

Please sign in to comment.