Removed deprecated ordering of throw arguments (#906)

This commit is contained in:
Felix Sanz 2017-02-21 07:18:33 +01:00 committed by Yiyu He
parent 18dbf5f59c
commit f3029f5bbd

View file

@ -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