Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 20, 2022
1 parent 6fc8787 commit 4f6b02e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bindings/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ impl Module {
// TODO: support imported functions
pub fn instantiate(self) -> Result<Instance, Error> {
if !self.owned {
return Err("Not owned".into());
return Err(Error::InstantiationFailed(
"Trying to instantiate not owned module".into(),
));
}
let mut err = FizzyErrorBox::new();
let ptr = unsafe {
Expand Down

0 comments on commit 4f6b02e

Please sign in to comment.