Skip to content

Commit 7923005

Browse files
committed
f
1 parent a0c6959 commit 7923005

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bindings/rust/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ impl Module {
219219
// TODO: support imported functions
220220
pub fn instantiate(self) -> Result<Instance, Error> {
221221
if !self.owned {
222-
return Err("Not owned".into());
222+
return Err(Error::InstantiationFailed(
223+
"Trying to instantiate not owned module".into(),
224+
));
223225
}
224226
let mut err = FizzyErrorBox::new();
225227
let ptr = unsafe {

0 commit comments

Comments
 (0)