From 690604b6d29572dd5a9ba782706155b81e20e606 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Sun, 6 Jul 2014 02:36:12 -0700 Subject: [PATCH] remove this.error() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it’s been deprecated for long enough --- lib/context.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/context.js b/lib/context.js index c5f0148..2b0b084 100644 --- a/lib/context.js +++ b/lib/context.js @@ -62,20 +62,6 @@ var proto = module.exports = { throw err; }, - /** - * Alias for .throw() for backwards compatibility. - * Do not use - will be removed in the future. - * - * @param {String|Number} msg - * @param {Number} status - * @api private - */ - - error: function(msg, status){ - console.warn('ctx.error is deprecated, use ctx.throw'); - this.throw(msg, status); - }, - /** * Default error handling. *