0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added captureException helper to Sentry integration

no issue

- this allows us to custom capture exceptions
This commit is contained in:
Daniel Lockyer 2020-02-18 22:01:49 +00:00
parent 8f789523e3
commit 4fda464103

View file

@ -20,11 +20,13 @@ if (sentryConfig && !sentryConfig.disabled) {
// Only handle 500 errors for now // Only handle 500 errors for now
return (error.statusCode === 500); return (error.statusCode === 500);
} }
}) }),
captureException: Sentry.captureException
}; };
} else { } else {
module.exports = { module.exports = {
requestHandler: expressNoop, requestHandler: expressNoop,
errorHandler: expressNoop errorHandler: expressNoop,
captureException: () => {}
}; };
} }