EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

eosio_assert write error message to console #5240

Closed Thomas55777 closed 6 years ago

Thomas55777 commented 6 years ago

I wrote a contract with the following code:

    void printerr()
    {
        eosio_assert(1 == 2, "One is not equal to two.");
    }

If I push the action using cleos I do not receive the error message only a generic assert failed: Error 3050003: eosio_assert_message assertion failure

I can see the error message from nodeos if I use --contracts-console. Is there any way to see the error message using cleos or eosjs?

Thank you

RuBAN-GT commented 6 years ago

@Thomas55777, https://github.com/EOSIO/eos/issues/4547 contain the answer: You need to use --verbose-http-errors for nodeos.