Skip to content

fix: safeNormalize and serialize for Promise rejections #1841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 21, 2019

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Jan 17, 2019

No description provided.

@HazAT HazAT self-assigned this Jan 17, 2019
@HazAT HazAT requested a review from kamilogorek as a code owner January 17, 2019 13:21
@HazAT HazAT changed the title fix: safeNormalize and serialize fix: safeNormalize and serialize for Promise rejections Jan 17, 2019
@getsentry-bot
Copy link
Contributor

getsentry-bot commented Jan 17, 2019

Warnings
⚠️ Please add a changelog entry for your changes.
Messages
📖 ✅ TSLint passed
📖 @sentry/browser gzip'ed minified size: 22.3984 kB

Generated by 🚫 dangerJS

const fallbackValue = typeof stacktrace.original !== 'undefined' ? `${stacktrace.original}` : '';
const fallbackValue =
typeof stacktrace.original !== 'undefined'
? `${truncate(serialize(safeNormalize(stacktrace.original)), 300)}`
Copy link
Contributor

@kamilogorek kamilogorek Jan 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why we didnt introduce serialize(stacktrace.original, { normalize: true }) in the first place 😅

@HazAT HazAT merged commit 30909d5 into master Jan 21, 2019
@HazAT HazAT deleted the fix/serialize-message-in-promise-reject branch January 21, 2019 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants