Removed deprecated ordering of throw arguments (#906)
This commit is contained in:
parent
18dbf5f59c
commit
f3029f5bbd
1 changed files with 0 additions and 2 deletions
|
@ -73,10 +73,8 @@ var proto = module.exports = {
|
||||||
* errors, and the message may be exposed to the client.
|
* errors, and the message may be exposed to the client.
|
||||||
*
|
*
|
||||||
* this.throw(403)
|
* this.throw(403)
|
||||||
* this.throw('name required', 400)
|
|
||||||
* this.throw(400, 'name required')
|
* this.throw(400, 'name required')
|
||||||
* this.throw('something exploded')
|
* this.throw('something exploded')
|
||||||
* this.throw(new Error('invalid'), 400);
|
|
||||||
* this.throw(400, new Error('invalid'));
|
* this.throw(400, new Error('invalid'));
|
||||||
*
|
*
|
||||||
* See: https://github.com/jshttp/http-errors
|
* See: https://github.com/jshttp/http-errors
|
||||||
|
|
Loading…
Reference in a new issue