Please fix use of duplicate error codes for different error conditions

+1 vote
Hey

Some of your methods return the same error code for different error conditions which makes it difficult trying to return meaningful error messages to consumers.  For example when I use getmultibalances with an address not in the wallet or again for an asset that does not exist on the chain, I get different error messages back but the same error code (-8).

Appreciate this is minor, but it wreaks havoc with my error handing!

 

Thanks

Marty
asked Jul 1, 2016 by marty

1 Answer

0 votes
Thanks for the comment. A lot of these codes were inherited from Bitcoin Core, and at some point we will do a thorough review of all of them. In the meantime perhaps you can rely on the textual error messages which we don't change unless we need to.
answered Jul 11, 2016 by MultiChain
...