mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +00:00
Improve wasmtime error reporting (#11856)
* Improve `wasmtime` error reporting * cargo fmt
This commit is contained in:
@@ -186,9 +186,10 @@ impl InstanceWrapper {
|
||||
) -> Result<Self> {
|
||||
let mut store = create_store(engine, max_memory_size);
|
||||
let instance = instance_pre.instantiate(&mut store).map_err(|error| {
|
||||
WasmError::Other(
|
||||
format!("failed to instantiate a new WASM module instance: {}", error,),
|
||||
)
|
||||
WasmError::Other(format!(
|
||||
"failed to instantiate a new WASM module instance: {:#}",
|
||||
error,
|
||||
))
|
||||
})?;
|
||||
|
||||
let memory = get_linear_memory(&instance, &mut store)?;
|
||||
|
||||
Reference in New Issue
Block a user