From f3029f5bbde954a794cd44b31dcf8218e53399a7 Mon Sep 17 00:00:00 2001 From: Felix Sanz Date: Tue, 21 Feb 2017 07:18:33 +0100 Subject: [PATCH] Removed deprecated ordering of throw arguments (#906) --- lib/context.js | 2 -- 1 file changed, 2 deletions(-) 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