diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-01-04 19:43:59 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-01-04 19:43:59 +0100 |
| commit | ca1837be7414f8d7762e2b5c5529cde35facf890 (patch) | |
| tree | 319a2c20185080eddff933f3c714d622b77918d3 /crates/cli | |
| parent | c0dbf46be1dece623946e3019350914d9161a157 (diff) | |
test: impprove panic reporting
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/cli')
| -rw-r--r-- | crates/cli/src/bin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/cli/src/bin.rs b/crates/cli/src/bin.rs index 2712751..fc680b1 100644 --- a/crates/cli/src/bin.rs +++ b/crates/cli/src/bin.rs @@ -117,7 +117,7 @@ fn run(module: Module, func: Option<String>, args: Vec<WasmValue>) -> Result<()> let instance = module.instantiate(&mut store)?; if let Some(func) = func { - let func = instance.get_func(&store, &func)?; + let func = instance.exported_func_by_name(&store, &func)?; let res = func.call(&mut store, &args)?; info!("{res:?}"); } |
