50b5bdbbdd
* rebuilt strategies.js * local.js -> local.ts * oidc.js -> oidc.ts * google.js -> google.ts * github.js -> github.ts * azure-ad.js -> azureAd.ts * minor fixes * FE2 regen * improved error reference page * minor adjustment * more error page improvements * migrated helper * testfix
19 lines
411 B
JavaScript
19 lines
411 B
JavaScript
/* istanbul ignore file */
|
|
const Sentry = require('@sentry/node')
|
|
|
|
/**
|
|
* @param {{
|
|
* err: Error | unknown,
|
|
* kind?: string | null,
|
|
* extras?: { [key: string]: any } | null
|
|
* }} param0
|
|
*/
|
|
module.exports = function ({ err, kind, extras }) {
|
|
Sentry.withScope((scope) => {
|
|
if (kind) scope.setTag('kind', kind)
|
|
if (extras) scope.setExtra('extras', extras)
|
|
|
|
Sentry.captureException(err)
|
|
})
|
|
}
|