We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecf2bc1 commit 7bbd283Copy full SHA for 7bbd283
packages/integrations/src/extraerrordata.ts
@@ -85,7 +85,7 @@ export class ExtraErrorData implements Integration {
85
for (const key of errorKeys) {
86
let value = error[key];
87
if (isError(value)) {
88
- value = (value as Error).name || (value as Error).constructor.name;
+ value = (value as Error).toString();
89
}
90
// tslint:disable:no-unsafe-any
91
extraErrorInfo[key] = value;
packages/integrations/test/extraerrordata.test.ts
@@ -37,7 +37,7 @@ describe('ExtraErrorData()', () => {
37
38
expect(enhancedEvent.extra).toEqual({
39
TypeError: {
40
- cause: 'SyntaxError',
+ cause: 'SyntaxError: bar',
41
},
42
});
43
0 commit comments