Update error message

pull/1/head
Made Baruna 2021-03-29 09:06:12 +08:00
parent a13fd19b69
commit 52142c832d
2 changed files with 10 additions and 6 deletions

View File

@ -101,11 +101,13 @@ export function process(id) {
if (nextBanner === undefined) {
pushToast('Something went wrong, please leave a message on Discord 😅', 'error');
Sentry.captureException(new Error('failed to get current banner'), {
Sentry.captureMessage('failed to get current banner', {
contexts: {
pullData: {
pull,
path,
},
},
});
return null;
}

View File

@ -139,11 +139,13 @@
if (currentBanner === undefined) {
pushToast($t('wish.errorBanner'), 'error');
Sentry.captureException(new Error('failed to get current banner'), {
Sentry.captureMessage('failed to get current banner', {
contexts: {
pullData: {
pull,
path,
},
},
});
return;
}