Correct ctx.assert documentation parameter order

This commit is contained in:
PlasmaPower 2016-03-26 21:26:09 -06:00
parent bd3d9e5100
commit 9c6969755f

View file

@ -119,7 +119,7 @@ ctx.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)