Merge pull request #118 from eivindfjeldstad/patch-1
add deprecation warning for ctx.error
This commit is contained in:
commit
9f35f6bf17
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ module.exports = {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
error: function(msg, status){
|
error: function(msg, status){
|
||||||
|
console.warn('ctx.error is deprecated, use ctx.throw');
|
||||||
this.throw(msg, status);
|
this.throw(msg, status);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue