From 25032908b1a212cc4f1fa29d42aa2170e33045c4 Mon Sep 17 00:00:00 2001 From: Clark Sell Date: Mon, 16 Oct 2023 13:20:00 -0500 Subject: [PATCH] fix: removing exception catch on retry --- src/_utils/gfetch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_utils/gfetch.js b/src/_utils/gfetch.js index c0e2bb47..9283da2f 100644 --- a/src/_utils/gfetch.js +++ b/src/_utils/gfetch.js @@ -22,7 +22,7 @@ function init(fetch) { loading.set(false); } - if (r.ok) { + if (r.status === 200) { return r.json(); } else { throw new Error(`${r.status} ${r.statusText}`); @@ -43,7 +43,7 @@ function init(fetch) { response?.status }, is response empty? ${response === undefined || response === null}` }); - Sentry.captureException(error); + Sentry.captureMessage(error); return true; }