I've come across some inconsistency when working with mds/terminal minidapp and testing out different commands that the errors received with some commands had different json format of errors. In other words..
A send command without all required parameters, send amount:1 returns:
Notice there there is an error key pair value with a message explaining the error.
However, a send command when you don't have sufficient balance returns:
with a message key pair value instead.
Is it possible to keep them consistent?
Suggestion
Suggestion for an enhancement; perhaps an improved error handling system with error codes and an appropriate message OR documenting each error code accordingly.
I've come across some inconsistency when working with mds/terminal minidapp and testing out different commands that the errors received with some commands had different json format of errors. In other words..
A send command without all required parameters,
send amount:1
returns:Notice there there is an error key pair value with a message explaining the error.
However, a send command when you don't have sufficient balance returns:
with a message key pair value instead.
Is it possible to keep them consistent?
Suggestion Suggestion for an enhancement; perhaps an improved error handling system with error codes and an appropriate message OR documenting each error code accordingly.