mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Improve wasmtime error reporting (#11856)
* Improve `wasmtime` error reporting * cargo fmt
This commit is contained in:
@@ -112,7 +112,7 @@ impl<'a, 'b> sp_wasm_interface::HostFunctionRegistry for Registry<'a, 'b> {
|
||||
if self.pending_func_imports.remove(fn_name).is_some() {
|
||||
self.linker.func_wrap("env", fn_name, func).map_err(|error| {
|
||||
WasmError::Other(format!(
|
||||
"failed to register host function '{}' with the WASM linker: {}",
|
||||
"failed to register host function '{}' with the WASM linker: {:#}",
|
||||
fn_name, error
|
||||
))
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user