Skip to content

Commit e765a59

Browse files
Update packages/remix/src/utils/instrumentServer.ts
Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
1 parent 075de70 commit e765a59

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/remix/src/utils/instrumentServer.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ interface DataFunction {
7070
}
7171

7272
function captureRemixServerException(err: Error, name: string): void {
73-
configureScope(scope => {
73+
captureException(err, scope => {
7474
scope.addEventProcessor(event => {
7575
addExceptionMechanism(event, {
7676
type: 'instrument',
@@ -79,12 +79,10 @@ function captureRemixServerException(err: Error, name: string): void {
7979
function: name,
8080
},
8181
});
82-
8382
return event;
84-
});
83+
}
84+
return scope;
8585
});
86-
87-
captureException(err);
8886
}
8987

9088
function makeWrappedDocumentRequestFunction(

0 commit comments

Comments
 (0)