From 7dd496c4909b7bf7d0f357bca28d5f256b6e9a64 Mon Sep 17 00:00:00 2001 From: Patrick Ventuzelo <9038181+pventuzelo@users.noreply.github.com> Date: Tue, 3 Sep 2019 17:06:56 +0200 Subject: [PATCH] Update src/bin/wasmer.rs Co-Authored-By: Syrus Akbary --- src/bin/wasmer.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/wasmer.rs b/src/bin/wasmer.rs index 5d0f849c3..651981b3b 100644 --- a/src/bin/wasmer.rs +++ b/src/bin/wasmer.rs @@ -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::() {