mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Improve wasmer invoke function
This commit is contained in:
parent
8a13917ec5
commit
a52fadf54e
@ -499,7 +499,7 @@ fn execute_wasi(
|
||||
.map_err(|e| format!("Invoke failed: {:?}", e))?
|
||||
.call(&args)
|
||||
.map_err(|e| format!("Calling invoke fn failed: {:?}", e))?;
|
||||
println!("{} returned {:?}", invoke_fn, invoke_result);
|
||||
println!("{}({:?}) returned {:?}", invoke_fn, args, invoke_result);
|
||||
return Ok(());
|
||||
} else {
|
||||
result = start.call();
|
||||
@ -836,7 +836,7 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
|
||||
.map_err(|e| format!("{:?}", e))?
|
||||
.call(&args)
|
||||
.map_err(|e| format!("{:?}", e))?;
|
||||
println!("main() returned: {:?}", result);
|
||||
println!("{}({:?}) returned: {:?}", invoke_fn, args, result);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user