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

Misleading error message when adding market order with invalid denomination #39

Open
haasted opened this issue Dec 9, 2020 · 0 comments

Comments

@haasted
Copy link
Collaborator

haasted commented Dec 9, 2020

Using the cli to add a a market order with a non-existant denomination results in the rather unhelpful error response "Internal".

How to reproduce

  1. Start a local testnet.
  2. Add a new market order:
    ./build/emcli tx market add-limit 1ungmn 500bobs orderid1 --from <address>

The non-existant denomination "bobs" will make the tx fail. The output from the cli is:

codespace: market
code: 1
data: ""
rawlog: internal
logs: []
info: ""
gaswanted: 200000
gasused: 62176
tx: null
timestamp: ""

Expected behavior
The log should contain an error message informing of the erroneous denomination.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant