Fix Raven

This commit is contained in:
Jonathan Cremin 2018-06-02 19:01:31 +00:00
parent bb5189c9ed
commit 7607759e3f
4 changed files with 17 additions and 25 deletions

View file

@ -49,8 +49,8 @@ router.use(async (ctx, next) => {
};
} else if (!err.status) {
debug(err);
if (ctx.raven) {
ctx.raven.captureError(err);
if (ctx.Raven) {
ctx.Raven.captureException(err);
}
throw err;
} else {