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

Fix 830 panic unwrap wasmer args #834

Conversation

pventuzelo
Copy link
Contributor

@pventuzelo pventuzelo commented Sep 25, 2019

Description

Fix issue #830

  • Check for error from parse() before unwraping.

After the fix

./target/release/wasmer run fib.wasm -- abc
Error: Can't parse the provided argument "abc" as a integer

Review

  • Add a short description of the the change to the CHANGELOG.md file

@syrusakbary
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Sep 25, 2019
834: Fix 830 panic unwrap wasmer args r=syrusakbary a=pventuzelo

# Description

Fix issue #830 
* Check for error from `parse()` before unwraping.

# After the fix

``` sh
./target/release/wasmer run fib.wasm -- abc
Error: Can't parse the provided argument "abc" as a integer
```

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Patrick Ventuzelo <ventuzelo.patrick@gmail.com>
Co-authored-by: Patrick Ventuzelo <9038181+pventuzelo@users.noreply.github.com>
@syrusakbary syrusakbary merged commit c52c44a into wasmerio:master Sep 25, 2019
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