Skip to content

Commit

Permalink
📝 Correct errorType typo
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Oct 6, 2017
1 parent 90431ff commit e058b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ wretch("http://server/which/returns/an/error/with/a/json/body")
.get()
.res()
.catch(error => {
// error.message contains the parsed body
console.log(error.message))
// error[errorType] (here, json) contains the parsed body
console.log(error.json))
}
```
Expand Down

0 comments on commit e058b7a

Please sign in to comment.