Skip to content

Commit

Permalink
Update README.md (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgywzy authored Nov 28, 2022
1 parent 85b426f commit c02ec0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ app.use(async ctx => {
```js
app.use(bodyParser({
onerror: function (err, ctx) {
ctx.throw('body parse error', 422);
ctx.throw(422, 'body parse error');
}
}));
```
Expand Down

0 comments on commit c02ec0c

Please sign in to comment.