diff --git a/docs/api/context.md b/docs/api/context.md index 149e95f..e267ffb 100644 --- a/docs/api/context.md +++ b/docs/api/context.md @@ -119,7 +119,7 @@ this.throw('access_denied', { user: user }); koa uses [http-errors](https://github.com/jshttp/http-errors) to create errors. -### ctx.assert(value, [msg], [status], [properties]) +### ctx.assert(value, [status], [msg], [properties]) Helper method to throw an error similar to `.throw()` when `!value`. Similar to node's [assert()](http://nodejs.org/api/assert.html)