From 5eb53a7f7a2e12c1dd157b08e9478e5ad923f416 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Fri, 20 Dec 2013 15:34:48 -0800 Subject: [PATCH] add docs for .throw() additions --- docs/api/context.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/context.md b/docs/api/context.md index 4efb3d0..3e96397 100644 --- a/docs/api/context.md +++ b/docs/api/context.md @@ -128,6 +128,7 @@ Note: koa uses the [cookies](https://github.com/jed/cookies) module where option ```js this.throw(403) this.throw('name required', 400) +this.throw(400, 'name required') this.throw('something exploded') ```