We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 739d904 commit 6f2d67eCopy full SHA for 6f2d67e
packages/remix/src/client/errors.tsx
@@ -13,7 +13,8 @@ import type { ErrorResponse } from '../utils/vendor/types';
13
export function captureRemixErrorBoundaryError(error: unknown): string | undefined {
14
let eventId: string | undefined;
15
const isClientSideRuntimeError = !isNodeEnv() && error instanceof Error;
16
- const isRemixErrorResponse = isRouteErrorResponse(error);
+ // We only capture `ErrorResponse`s that are 5xx errors.
17
+ const isRemixErrorResponse = isRouteErrorResponse(error) && error.status >= 500;
18
// Server-side errors apart from `ErrorResponse`s also appear here without their stacktraces.
19
// So, we only capture:
20
// 1. `ErrorResponse`s
0 commit comments