Update context.md

Corrected wrong param order in method description for ctx.assert
This commit is contained in:
Stig Otnes Kolstad 2016-03-25 00:57:25 +01:00
parent 6ba43810a2
commit e1a219e434

View file

@ -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)