Skip to content

Commit a33629e

Browse files
committed
fix: Events created from exception shouldnt have top-level message attribute
1 parent 4fba325 commit a33629e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
## 5.0.0
6+
7+
- [node] fix: Events created from exception shouldnt have top-level message attribute
8+
59
## 4.5.0
610

711
- [core] feat: Deprecate `captureEvent`, prefer `sendEvent` for transports. `sendEvent` now takes a string (body)

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)