We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 241f204 commit 0b6badfCopy full SHA for 0b6badf
1 file changed
packages/website-router/src/routing.ts
@@ -46,13 +46,14 @@ async function handleErrorResponse(options: {
46
});
47
}
48
49
- options.sentry.captureException(
50
- new Error(` ${options.response.status}: ${requestedEndpoint} `),
51
- );
52
-
53
// return original response if it isnt a 404, will help with
54
// debugging especially if Cloudflare is blocking the request
55
if (options.response.status !== 404) {
+ // we don't want to report 404
+ options.sentry.captureException(
+ new Error(` ${options.response.status}: ${requestedEndpoint} `),
+ );
56
+
57
return options.response;
58
59
0 commit comments