diff --git a/lib/context.js b/lib/context.js index b6cc6f7..0c94725 100644 --- a/lib/context.js +++ b/lib/context.js @@ -73,10 +73,8 @@ var proto = module.exports = { * errors, and the message may be exposed to the client. * * this.throw(403) - * this.throw('name required', 400) * this.throw(400, 'name required') * this.throw('something exploded') - * this.throw(new Error('invalid'), 400); * this.throw(400, new Error('invalid')); * * See: https://github.com/jshttp/http-errors