Skip to content

Add stack trace to unhandled error log message#2939

Merged
koesie10 merged 1 commit intomainfrom
koesie10/unhandled-error-stack
Oct 10, 2023
Merged

Add stack trace to unhandled error log message#2939
koesie10 merged 1 commit intomainfrom
koesie10/unhandled-error-stack

Conversation

@koesie10
Copy link
Copy Markdown
Member

This change sets the fullMessage of the showAndLogExceptionWithTelemetry call to include the stack trace. This makes it possible to find the source of the error rather than only knowing that a specific error occurred. If the error does not have a stack trace (which should be rare) the message will be the same as before.

Screenshot 2023-10-10 at 15 47 33

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

This change sets the `fullMessage` of the
`showAndLogExceptionWithTelemetry` to include the stack trace. This
makes it possible to find the source of the error rather than only
knowing that a specific error occurred. If the error does not have a
stack trace (which should be rare) the message will be the same as
before.
@koesie10 koesie10 requested a review from a team as a code owner October 10, 2023 13:47
@koesie10 koesie10 enabled auto-merge October 10, 2023 13:56
@koesie10 koesie10 merged commit 2e2ab11 into main Oct 10, 2023
@koesie10 koesie10 deleted the koesie10/unhandled-error-stack branch October 10, 2023 14:10
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.

2 participants