From ddde5f96efcadb5009c71bdbc406c6038834d519 Mon Sep 17 00:00:00 2001 From: Eivind Fjeldstad Date: Thu, 19 Dec 2013 11:48:32 +0100 Subject: [PATCH] add deprecation warning for ctx.error Didn't notice the change until now. A warning would be useful --- lib/context.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/context.js b/lib/context.js index bfade5b..050ea1a 100644 --- a/lib/context.js +++ b/lib/context.js @@ -75,6 +75,7 @@ module.exports = { */ error: function(msg, status){ + console.warn('ctx.error is deprecated, use ctx.throw'); this.throw(msg, status); },