Skip to content

refactor: clarify error msg. for de-allocated ResourceAny#12751

Merged
alexcrichton merged 2 commits intobytecodealliance:mainfrom
crepererum:crepererum/issue12465
Mar 10, 2026
Merged

refactor: clarify error msg. for de-allocated ResourceAny#12751
alexcrichton merged 2 commits intobytecodealliance:mainfrom
crepererum:crepererum/issue12465

Conversation

@crepererum
Copy link
Contributor

The error message used to state that this happens because the type of the resource changed, but actually this can also happen with the very same type if the resource was already de-allocated. Clarifying the error message might safe some wasmtime users some long debugging sessions.

See #12465.

The error message used to state that this happens because the type of
the resource changed, but actually this can also happen with the very
same type if the resource was already de-allocated. Clarifying the error
message might safe some `wasmtime` users some long debugging sessions.

See bytecodealliance#12465.
@crepererum crepererum requested a review from a team as a code owner March 10, 2026 13:09
@crepererum crepererum requested review from cfallin and removed request for a team March 10, 2026 13:09
Copy link
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.

Thanks!

@alexcrichton alexcrichton added this pull request to the merge queue Mar 10, 2026
Merged via the queue into bytecodealliance:main with commit 34caf68 Mar 10, 2026
45 checks passed
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