Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant