Skip to content

Use Display implementation for instantiation error #1508

Closed
@webmaster128

Description

@webmaster128

Currently we use the debug implementation of InstantiationError, leading to errors like this:

Error: rpc error: code = InvalidArgument desc = Error calling the VM: Error instantiating a Wasm module: Error instantiating module: CpuFeature("EnumSet(AVX512DQ | AVX512VL | AVX512F)"): query wasm contract failed: invalid request

This does not explain what the problem is. However, there is a Display implementation that would give us

missing requires CPU features: "AVX512DQ | AVX512VL | AVX512F"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions