Skip to content

Commit

Permalink
Merge pull request CosmWasm#1509 from CosmWasm/InstantiationError-dis…
Browse files Browse the repository at this point in the history
…play

Use Display representation for embedding Wasmer InstantiationErrors
  • Loading branch information
webmaster128 authored Nov 23, 2022
2 parents e4ab355 + 546cb4a commit 872cfce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ and this project adheres to
cosmwasm-vm on Windows. This gives us confidence for integrating cosmwasm-vm
in a libwasmvm build on Windows. This change is likely to be consensus
breaking as error messages change. ([#1406])
- cosmwasm-vm: Use `Display` representation for embedding Wasmer
`InstantiationError`s ([#1508]).

[#1406]: https://github.com/CosmWasm/cosmwasm/pull/1406
[#1508]: https://github.com/CosmWasm/cosmwasm/issues/1508

## [1.1.8] - 2022-11-22

Expand Down
2 changes: 1 addition & 1 deletion packages/vm/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ where
WasmerInstance::new(module, &import_obj)
}
.map_err(|original| {
VmError::instantiation_err(format!("Error instantiating module: {:?}", original))
VmError::instantiation_err(format!("Error instantiating module: {original}"))
})?,
);

Expand Down

0 comments on commit 872cfce

Please # to comment.