You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in the main.rs when doing a run it catches the error and prints it, but doesn't exit with a non-zero code. So this seems like two issues. I agree that there should be a proper error, but I think we should also exit with a non-zero so that scripts and other programs invoking the CLI will know there has been an error.
I agree with @willemneal here. The fact that the empty group isn't being reported as an error in this particular case is an issue - but not the same issue not setting the exit code to 1. Let's tackle these separately ?
What version are you using?
What did you do?
❯ soroban contract read --network local --source me --id CAW7SH5JG45U6YLCFB6YD2KVSOZQHMNEJQPN6KDZOCGSXWR72ZIFBBMP --key abc
What did you expect to see?
An error because no contract data or ledger entry is stored with that key.
What did you see instead?
Nothing. No output.
Discussion
It's difficult to compose tools that don't exit with a non-zero code in failure cases.
From a UX point-of-view the user can be left feeling uneasy when a tool returns or outputs nothing.
Tasks
contract read
is unable to read any entry. soroban-tools#924The text was updated successfully, but these errors were encountered: