Skip to content

Commit

Permalink
Merge pull request #105 from ThatConference/cs/retry
Browse files Browse the repository at this point in the history
fix: removing exception catch on retry
  • Loading branch information
theClarkSell committed Oct 16, 2023
2 parents 3fd6d35 + 44f5227 commit 092a6dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/gfetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -43,7 +43,7 @@ function init(fetch) {
response?.status
}, is response empty? ${response === undefined || response === null}`
});
Sentry.captureException(error);
Sentry.captureMessage(error);

return true;
}
Expand Down

1 comment on commit 092a6dd

@vercel
Copy link

@vercel vercel bot commented on 092a6dd Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.