Skip to content

Conversation

@md384
Copy link
Contributor

@md384 md384 commented Jul 28, 2023

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

This PR adds support for capturing an exception for the any error in a console method call (only the first error instance), not just if the first argument is an error.

This is a problem for us because timestamps are always the first argument in console calls and we often add a context message before the error.

@mydea
Copy link
Member

mydea commented Jul 31, 2023

Hey, this seems good to me. It may be kind-of breaking if somebody was relying on this, but probably that's not too much of a problem, so IMHO this is good to go.

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

Thanks @md384!

@AbhiPrasad AbhiPrasad merged commit 89380eb into getsentry:develop Jul 31, 2023
@md384 md384 deleted the develop.capture-exception-any-arg branch July 31, 2023 19:32
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