Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

lucetc: do not print the full error returned by wat2wasm #207

Merged
merged 1 commit into from
Jun 12, 2019

Conversation

jedisct1
Copy link
Contributor

When the input is neither valid WASM nor WAT, only print that rather than the wat2wasm error.

This prevents the terminal from exploding after pages of garbage (from a WAT parser perspective) are printed whenever one inadvertently types "lucetc-wasi" instead of "lucet-wasi".

When the input is neither valid WASM nor WAT, only print that rather than
the wat2wasm error.

This prevents the terminal from exploding after pages of garbage (from
a WAT parser perspective) are printed whenever one inadvertently types
"lucetc-wasi" instead of "lucet-wasi".
@jedisct1 jedisct1 merged commit 3951892 into master Jun 12, 2019
@jedisct1 jedisct1 deleted the fdenis/lucetc-shorten-input-error branch June 12, 2019 08:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants