Skip to content

Commit

Permalink
Update src/bin/wasmer.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: Syrus Akbary <me@syrusakbary.com>
  • Loading branch information
pventuzelo and syrusakbary authored Sep 3, 2019
1 parent cdba7e5 commit 7dd496c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bin/wasmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,9 @@ fn execute_wasm(options: &Run) -> Result<(), String> {

if let Err(ref err) = result {
match err {
RuntimeError::Trap { msg } => return Err(format!("wasm trap occured: {}", msg)),
RuntimeError::Trap { msg } => {
return Err(format!("wasm trap occured: {}", msg))
}
#[cfg(feature = "wasi")]
RuntimeError::Error { data } => {
if let Some(error_code) = data.downcast_ref::<wasmer_wasi::ExitCode>() {
Expand Down

0 comments on commit 7dd496c

Please sign in to comment.