Skip to content

Commit

Permalink
fix: Events created from exception shouldnt have top-level message at…
Browse files Browse the repository at this point in the history
…tribute
  • Loading branch information
kamilogorek committed Jan 10, 2019
1 parent 4fba325 commit ab63ad0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/node/src/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,11 @@ export async function getExceptionFromError(error: Error, options?: NodeOptions)

/** JSDoc */
export async function parseError(error: ExtendedError, options?: NodeOptions): Promise<SentryEvent> {
const name = error.name || error.constructor.name;
const exception = await getExceptionFromError(error, options);
return {
exception: {
values: [exception],
},
message: `${name}: ${error.message || '<no message>'}`,
};
}

Expand Down

0 comments on commit ab63ad0

Please sign in to comment.