Skip to content

Commit bc4cb71

Browse files
Turbo87HazAT
authored andcommitted
integrations/ember: Pass originalException to captureException() calls (getsentry#2056)
This makes `originalException` available to the `beforeSend()` hook. see getsentry#1509
1 parent 00459fd commit bc4cb71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/integrations/src/ember.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class Ember implements Integration {
4242
if (getCurrentHub().getIntegration(Ember)) {
4343
getCurrentHub().withScope(scope => {
4444
this._addIntegrationToSdkInfo(scope);
45-
getCurrentHub().captureException(error);
45+
getCurrentHub().captureException(error, { originalException: error });
4646
});
4747
}
4848

@@ -61,7 +61,7 @@ export class Ember implements Integration {
6161
if (reason instanceof Error) {
6262
scope.setExtra('context', 'Unhandled Promise error detected');
6363
this._addIntegrationToSdkInfo(scope);
64-
getCurrentHub().captureException(reason);
64+
getCurrentHub().captureException(reason, { originalException: reason });
6565
} else {
6666
scope.setExtra('reason', reason);
6767
this._addIntegrationToSdkInfo(scope);

0 commit comments

Comments
 (0)