We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
originalException
captureException()
1 parent 00459fd commit bc4cb71Copy full SHA for bc4cb71
packages/integrations/src/ember.ts
@@ -42,7 +42,7 @@ export class Ember implements Integration {
42
if (getCurrentHub().getIntegration(Ember)) {
43
getCurrentHub().withScope(scope => {
44
this._addIntegrationToSdkInfo(scope);
45
- getCurrentHub().captureException(error);
+ getCurrentHub().captureException(error, { originalException: error });
46
});
47
}
48
@@ -61,7 +61,7 @@ export class Ember implements Integration {
61
if (reason instanceof Error) {
62
scope.setExtra('context', 'Unhandled Promise error detected');
63
64
- getCurrentHub().captureException(reason);
+ getCurrentHub().captureException(reason, { originalException: reason });
65
} else {
66
scope.setExtra('reason', reason);
67
0 commit comments