web: re-add sentry error dialog
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
cdf57d7eea
commit
8b28039c1b
|
@ -35,6 +35,17 @@ export function configureSentry(canDoPpi: boolean = false): Promise<Config> {
|
||||||
if (hint.originalException instanceof Response) {
|
if (hint.originalException instanceof Response) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if (event.exception) {
|
||||||
|
me().then(user => {
|
||||||
|
Sentry.showReportDialog({
|
||||||
|
eventId: event.event_id,
|
||||||
|
user: {
|
||||||
|
email: user.user.email,
|
||||||
|
name: user.user.name,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
return event;
|
return event;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Reference in New Issue