Skip to content

Preserve error.is::<anyhow::Error>() for errors created via format_err!#12253

Merged
fitzgen merged 2 commits into
bytecodealliance:mainfrom
fitzgen:additional-wasmtime-error-anyhow-error-conversions
Jan 7, 2026
Merged

Preserve error.is::<anyhow::Error>() for errors created via format_err!#12253
fitzgen merged 2 commits into
bytecodealliance:mainfrom
fitzgen:additional-wasmtime-error-anyhow-error-conversions

Conversation

@fitzgen
Copy link
Copy Markdown
Member

@fitzgen fitzgen commented Jan 7, 2026

Builds on top of #12252

@fitzgen fitzgen requested a review from a team as a code owner January 7, 2026 17:39
@fitzgen fitzgen requested review from dicej and removed request for a team January 7, 2026 17:39
Copy link
Copy Markdown
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Mind adding a test for this too? Looks like the doc example won't actually get executed so it'd be good to have a #[test] too I think

@fitzgen fitzgen force-pushed the additional-wasmtime-error-anyhow-error-conversions branch from 3edfd53 to 2201b95 Compare January 7, 2026 18:20
@fitzgen fitzgen requested a review from a team as a code owner January 7, 2026 18:20
@fitzgen fitzgen force-pushed the additional-wasmtime-error-anyhow-error-conversions branch from 2201b95 to 62773df Compare January 7, 2026 18:21
@fitzgen fitzgen enabled auto-merge January 7, 2026 18:21
@fitzgen fitzgen added this pull request to the merge queue Jan 7, 2026
Merged via the queue into bytecodealliance:main with commit 2a454f5 Jan 7, 2026
45 checks passed
@fitzgen fitzgen deleted the additional-wasmtime-error-anyhow-error-conversions branch January 7, 2026 18:59
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