Clarify behavior of ctx.throw in docs (#856)

This commit is contained in:
Malcolm 2016-11-25 16:51:02 +13:00 committed by Yiyu He
parent 2a16426afe
commit e3ccdac621

View file

@ -103,6 +103,7 @@ ctx.throw('something exploded');
```js
const err = new Error('name required');
err.status = 400;
err.expose = true;
throw err;
```