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 (#1831)
  • Loading branch information
kamilogorek committed Jan 31, 2019
1 parent 89bca28 commit 4979bd8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

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

Expand Down
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 4979bd8

Please sign in to comment.