Skip to content

Commit 4979bd8

Browse files
committed
fix: Events created from exception shouldnt have top-level message attribute (#1831)
1 parent 89bca28 commit 4979bd8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44

5+
- **breaking** [node] fix: Events created from exception shouldnt have top-level message attribute
56
- [utils] ref: Update wrap method to hide internal sentry flags
67
- [utils] fix: Make internal Sentry flags non-enumerable in fill util
78

packages/node/src/parsers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,11 @@ export async function getExceptionFromError(error: Error, options?: NodeOptions)
235235

236236
/** JSDoc */
237237
export async function parseError(error: ExtendedError, options?: NodeOptions): Promise<SentryEvent> {
238-
const name = error.name || error.constructor.name;
239238
const exception = await getExceptionFromError(error, options);
240239
return {
241240
exception: {
242241
values: [exception],
243242
},
244-
message: `${name}: ${error.message || '<no message>'}`,
245243
};
246244
}
247245

0 commit comments

Comments
 (0)