Switch to @sentry/node

This commit is contained in:
Jonathan Cremin 2019-03-11 21:03:44 +00:00
parent 2a39b2a8e3
commit b5f99b217a
5 changed files with 124 additions and 49 deletions

View file

@ -2,7 +2,7 @@ import debuglog from 'debug';
const debug = debuglog('combine.fm');
export default function (raven) {
export default function (Sentry) {
return async function error(ctx, next) {
ctx.set('Server', 'Nintendo 64');
try {
@ -15,7 +15,7 @@ export default function (raven) {
ctx.body = err.error;
} else {
debug('Error: %o', err);
raven.captureException(err);
Sentry.captureException(err);
throw err;
}
}