Skip to content

Commit 9a64174

Browse files
committed
Expect request inside args.
1 parent a8e9c8a commit 9a64174

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
@@ -115,9 +115,9 @@ export const wrapRemixHandleError = sentryHandleError;
115115
* Remix Docs: https://remix.run/docs/en/main/file-conventions/entry.server#handleerror
116116
*/
117117
export function wrapHandleErrorWithSentry(
118-
origHandleError: (err: unknown, args: unknown) => void,
119-
): (err: unknown, args: unknown) => void {
120-
return function (this: unknown, err: unknown, args: unknown): void {
118+
origHandleError: (err: unknown, args: { request: unknown }) => void,
119+
): (err: unknown, args: { request: unknown }) => void {
120+
return function (this: unknown, err: unknown, args: { request: unknown }): void {
121121
// This is expected to be void but just in case it changes in the future.
122122
const res = origHandleError.call(this, err, args);
123123

0 commit comments

Comments
 (0)