fix(core): update
This commit is contained in:
@ -14,13 +14,13 @@ export interface ISentryConstructorOptions {
|
||||
export class Sentry {
|
||||
constructor(optionsArg: ISentryConstructorOptions) {
|
||||
plugins.sentry.init({
|
||||
dsn: optionsArg.dsn
|
||||
dsn: optionsArg.dsn,
|
||||
});
|
||||
process
|
||||
.on('unhandledRejection', (reason, p) => {
|
||||
console.error(reason, 'Unhandled Rejection at Promise', p);
|
||||
})
|
||||
.on('uncaughtException', err => {
|
||||
.on('uncaughtException', (err) => {
|
||||
console.log(err);
|
||||
this.captureException(err);
|
||||
process.exit(1);
|
||||
|
Reference in New Issue
Block a user