Skip to content
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

fix: error logging in firefox #2768

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

achingbrain
Copy link
Member

Firefox has an error type with a .stack property that is an empty string, so guard on the various properties being empty before logging them.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

Firefox has an error type with a `.stack` property that is an empty
string, so guard on the various properties being empty before logging
them.
@achingbrain achingbrain requested a review from a team as a code owner October 12, 2024 07:10
Copy link
Member

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

Which error has the empty stack property?

@achingbrain
Copy link
Member Author

Which error has the empty stack property?

I've seen it with errors emitted from WebTransport streams.

@achingbrain achingbrain merged commit e6b4158 into main Oct 22, 2024
34 checks passed
@achingbrain achingbrain deleted the fix/error-logging-in-firefox branch October 22, 2024 07:58
@achingbrain achingbrain mentioned this pull request Oct 22, 2024
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.

4 participants