Skip to content

Commit 562103e

Browse files
committed
map error for finding function
1 parent 06fac5f commit 562103e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vm/src/calls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ where
3131
let function = instance
3232
.exports
3333
.get_function(entry)
34-
.unwrap()
34+
.map_err(|_| Error::BadEntrySignatureError)?
3535
.native::<(), ()>()
3636
.map_err(|_| Error::BadEntrySignatureError)?;
3737

0 commit comments

Comments
 (0)