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); },