From e3ccdac6218d4c7d3c8ac7941b4550f39b31c8a3 Mon Sep 17 00:00:00 2001 From: Malcolm Date: Fri, 25 Nov 2016 16:51:02 +1300 Subject: [PATCH] Clarify behavior of ctx.throw in docs (#856) --- docs/api/context.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/context.md b/docs/api/context.md index 98db161..dc870cd 100644 --- a/docs/api/context.md +++ b/docs/api/context.md @@ -103,6 +103,7 @@ ctx.throw('something exploded'); ```js const err = new Error('name required'); err.status = 400; +err.expose = true; throw err; ```