Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix: Show full info for highlighter errors#62779

Merged
varungandhi-src merged 1 commit into
mainfrom
vg/error-trace
May 18, 2024
Merged

fix: Show full info for highlighter errors#62779
varungandhi-src merged 1 commit into
mainfrom
vg/error-trace

Conversation

@varungandhi-src

Copy link
Copy Markdown
Contributor

Previously, if you made a malformed request, the actual error
would not be shown because the default anyhow to_string impl
would only show the top-most context attached to the error
(see: https://docs.rs/anyhow/latest/anyhow/struct.Error.html#display-representations),
which would be something like /scip endpoint.

Test plan

Added snapshot test

@cla-bot cla-bot Bot added the cla-signed label May 18, 2024
@varungandhi-src varungandhi-src requested a review from keynmol May 18, 2024 06:58
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels May 18, 2024
@varungandhi-src varungandhi-src enabled auto-merge (squash) May 18, 2024 06:59

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Previously, this was:

{"error": "/scip endpoint"}

Previously, if you made a malformed request, the actual error
would not be shown because the default anyhow to_string impl
would only take the top-most context into account, which would
be something like '/scip endpoint'.

@keynmol keynmol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice

@varungandhi-src varungandhi-src merged commit 63073d4 into main May 18, 2024
@varungandhi-src varungandhi-src deleted the vg/error-trace branch May 18, 2024 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants