From e6bcbee83889a2823016beba27fefb8f9d54286a Mon Sep 17 00:00:00 2001 From: Arsenii Lyashenko Date: Thu, 26 Sep 2024 19:16:51 +0300 Subject: [PATCH] Return error instead of unwrap in gcli --- gcli/src/meta/executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcli/src/meta/executor.rs b/gcli/src/meta/executor.rs index 7e983cac0c0..6a3e17b83a8 100644 --- a/gcli/src/meta/executor.rs +++ b/gcli/src/meta/executor.rs @@ -63,7 +63,7 @@ fn execute(wasm: &[u8], method: &str) -> Result> { } } - let instance = Instance::new(&mut store, &module, &imports).unwrap(); + let instance = Instance::new(&mut store, &module, &imports)?; let metadata = instance .exports .get_function(method)