mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 00:00:49 +00:00
Update src/bin/wasmer.rs
Co-Authored-By: Syrus Akbary <me@syrusakbary.com>
This commit is contained in:
parent
cdba7e55e5
commit
7dd496c490
@ -634,7 +634,9 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
|
|||||||
|
|
||||||
if let Err(ref err) = result {
|
if let Err(ref err) = result {
|
||||||
match err {
|
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")]
|
#[cfg(feature = "wasi")]
|
||||||
RuntimeError::Error { data } => {
|
RuntimeError::Error { data } => {
|
||||||
if let Some(error_code) = data.downcast_ref::<wasmer_wasi::ExitCode>() {
|
if let Some(error_code) = data.downcast_ref::<wasmer_wasi::ExitCode>() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user