Merge pull request #118 from eivindfjeldstad/patch-1

add deprecation warning for ctx.error
This commit is contained in:
Jonathan Ong 2013-12-19 02:56:28 -08:00
commit 9f35f6bf17
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ module.exports = {
*/
error: function(msg, status){
console.warn('ctx.error is deprecated, use ctx.throw');
this.throw(msg, status);
},