8000 fix(remix): Rethrow `loader`, `action` and `documentRequest` errors (… · heshen/sentry-javascript@eec70b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit eec70b5

Browse files
authored
fix(remix): Rethrow loader, action and documentRequest errors (getsentry#11793)
1 parent 9a6c6a7 commit eec70b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/remix/src/utils/instrumentServer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ function makeWrappedDocumentRequestFunction(remixVersion?: number) {
228228
// eslint-disable-next-line @typescript-eslint/no-floating-promises
229229
captureRemixServerException(err, 'documentRequest', request);
230230
}
231+
232+
throw err;
231233
},
232234
);
233235
},
@@ -270,6 +272,8 @@ function makeWrappedDataFunction(
270272
// eslint-disable-next-line @typescript-eslint/no-floating-promises
271273
captureRemixServerException(err, name, args.request);
272274
}
275+
276+
throw err;
273277
},
274278
);
275279
},

0 commit comments

Comments
 (0)
0