Skip to content

Improve rendering of errors in wasmtime serve#10282

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:prettier-errors
Feb 24, 2025
Merged

Improve rendering of errors in wasmtime serve#10282
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:prettier-errors

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

For the error from handle_request use e.context(...) instead of stringifying e into a message. Additionally when logging a guest error use :? instead of :#? to give a more standard anyhow rendering of the error.

For the error from `handle_request` use `e.context(...)` instead of
stringifying `e` into a message. Additionally when logging a guest error
use `:?` instead of `:#?` to give a more standard `anyhow` rendering of
the error.
@alexcrichton alexcrichton requested a review from a team as a code owner February 24, 2025 15:56
@alexcrichton alexcrichton requested review from dicej and removed request for a team February 24, 2025 15:56
@alexcrichton alexcrichton added this pull request to the merge queue Feb 24, 2025
Merged via the queue into bytecodealliance:main with commit ef8a282 Feb 24, 2025
39 checks passed
@alexcrichton alexcrichton deleted the prettier-errors branch February 24, 2025 19:13
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