Skip to content

Commit 88c2aad

Browse files
committed
Expect request inside args.
1 parent 54dc6da commit 88c2aad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/remix/src/utils/instrumentServer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ export const wrapRemixHandleError = sentryHandleError;
114114
* Remix Docs: https://remix.run/docs/en/main/file-conventions/entry.server#handleerror
115115
*/
116116
export function wrapHandleErrorWithSentry(
117-
origHandleError: (err: unknown, args: unknown) => void,
118-
): (err: unknown, args: unknown) => void {
119-
return function (this: unknown, err: unknown, args: unknown): void {
117+
origHandleError: (err: unknown, args: { request: unknown }) => void,
118+
): (err: unknown, args: { request: unknown }) => void {
119+
return function (this: unknown, err: unknown, args: { request: unknown }): void {
120120
// This is expected to be void but just in case it changes in the future.
121121
const res = origHandleError.call(this, err, args);
122122

0 commit comments

Comments
 (0)