Skip to content

Commit

Permalink
Return error instead of unwrap in gcli
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f committed Sep 26, 2024
1 parent 766afc1 commit e6bcbee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcli/src/meta/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn execute(wasm: &[u8], method: &str) -> Result<Vec<u8>> {
}
}

let instance = Instance::new(&mut store, &module, &imports).unwrap();
let instance = Instance::new(&mut store, &module, &imports)?;
let metadata = instance
.exports
.get_function(method)
Expand Down

0 comments on commit e6bcbee

Please sign in to comment.