add deprecation warning for ctx.error
Didn't notice the change until now. A warning would be useful
This commit is contained in:
parent
2f4163f6e6
commit
ddde5f96ef
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ module.exports = {
|
|||
*/
|
||||
|
||||
error: function(msg, status){
|
||||
console.warn('ctx.error is deprecated, use ctx.throw');
|
||||
this.throw(msg, status);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue