Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Market keeper's errors are not received by emd #144

@haasted

Description

@haasted

Describe the bug

The market module keeper is rather diligent about returning informative errors to the user. Unfortunately, the error messages are lost in transmission and replaced with messages such as failed to execute message; message index: 0.

How to reproduce

Create an order with a non-existing asset on one side:

emd tx market add-limit 10000500bobs 5000000ungm orderid15 --from key1 --fees 200000ungm

The resulting output is something like:
{"height":"23746","txhash":"C90F800465460C171F1FB2CD2B3310D2315CF79328B0B37A9BFDC3468D0F619B","codespace":"market","code":1,"data":"","raw_log":"internal","logs":[],"info":"","gas_wanted":"200000","gas_used":"75742","tx":null,"timestamp":""}

My guess is that the actual error should be about an insufficient balance of bobs, but it could be that it's caught in an earlier check. Would be nice to have a more informative error message than code: 1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions