Skip to content

Commit 50c2772

Browse files
committed
Expect request inside args.
1 parent 3e96ef4 commit 50c2772

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

0 commit comments

Comments
 (0)