We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c6959 commit 7923005Copy full SHA for 7923005
bindings/rust/src/lib.rs
@@ -219,7 +219,9 @@ impl Module {
219
// TODO: support imported functions
220
pub fn instantiate(self) -> Result<Instance, Error> {
221
if !self.owned {
222
- return Err("Not owned".into());
+ return Err(Error::InstantiationFailed(
223
+ "Trying to instantiate not owned module".into(),
224
+ ));
225
}
226
let mut err = FizzyErrorBox::new();
227
let ptr = unsafe {
0 commit comments