Update src/bin/wasmer.rs

Co-Authored-By: Syrus Akbary <me@syrusakbary.com>
This commit is contained in:
Patrick Ventuzelo 2019-09-03 17:06:56 +02:00 committed by GitHub
parent cdba7e55e5
commit 7dd496c490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>() {