Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store the exit message in the result for tallyvm errors #473

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

Thomasvdam
Copy link
Member

Motivation

Make debugging easier.

Explanation of Changes

The tallyvm can run into errors outside the actual VM, while resolving host bindings for example. This leads to only the exit_info.message to be set and not the result. We write the message to the result in this scenario so it's easier for a developer to see what kind of error their program ran into.

Testing

Added a test with a custom build WASM which references an import that does not (and should never) exist on the host.

Related PRs and Issues

Closes: #454

The tallyvm can run into errors outside the actual VM, while resolving
host bindings for example. This leads to only the exit_info.message to
be set and not the result. We write the message to the result in this
scenario so it's easier for a developer to see what kind of error their
program ran into.

Closes: #454
@Thomasvdam Thomasvdam requested a review from a team January 23, 2025 20:24
@Thomasvdam Thomasvdam merged commit 689954d into main Jan 24, 2025
17 checks passed
@Thomasvdam Thomasvdam deleted the feat/store-vm-error-exit-message branch January 24, 2025 10:34
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.

✨ Return/store/log the VM ExitMessage somewhere
4 participants