From 52142c832dce3945ab0e83f6cf55cd6015291a78 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Mon, 29 Mar 2021 09:06:12 +0800 Subject: [PATCH] Update error message --- src/functions/wish.js | 8 +++++--- src/routes/wish/[id].svelte | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/functions/wish.js b/src/functions/wish.js index 6fb284bb..c1401a88 100644 --- a/src/functions/wish.js +++ b/src/functions/wish.js @@ -101,10 +101,12 @@ 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: { - pull, - path, + pullData: { + pull, + path, + }, }, }); return null; diff --git a/src/routes/wish/[id].svelte b/src/routes/wish/[id].svelte index 521db45a..5cb05ab3 100644 --- a/src/routes/wish/[id].svelte +++ b/src/routes/wish/[id].svelte @@ -139,10 +139,12 @@ 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: { - pull, - path, + pullData: { + pull, + path, + }, }, }); return;