Clarify behavior of ctx.throw in docs (#856)
This commit is contained in:
parent
2a16426afe
commit
e3ccdac621
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ ctx.throw('something exploded');
|
||||||
```js
|
```js
|
||||||
const err = new Error('name required');
|
const err = new Error('name required');
|
||||||
err.status = 400;
|
err.status = 400;
|
||||||
|
err.expose = true;
|
||||||
throw err;
|
throw err;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue