From 9c6969755fe01d91a7d68083062156f3184d8d0c Mon Sep 17 00:00:00 2001 From: PlasmaPower Date: Sat, 26 Mar 2016 21:26:09 -0600 Subject: [PATCH] Correct ctx.assert documentation parameter order --- docs/api/context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/context.md b/docs/api/context.md index a92d062..045211f 100644 --- a/docs/api/context.md +++ b/docs/api/context.md @@ -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)