Skip to content

Commit ab63ad0

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

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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)