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

exit code from zbctl not handed through #1

Closed
grexe opened this issue Mar 9, 2020 · 0 comments
Closed

exit code from zbctl not handed through #1

grexe opened this issue Mar 9, 2020 · 0 comments

Comments

@grexe
Copy link

grexe commented Mar 9, 2020

Note: I wrongly attributed this bug to zbctl itself, but there it works (when invoking the shell executable from the distribution): camunda/zeebe#3993

When invoking zbctl with invalid arguments, or Zeebe is not running at all, it still exits with code 0, which is wrong and makes it hard to integrate in scripts.

E.g.:

❯ zbctl --insecure status

Error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:26500: connect: connection refused"
Usage:
…

❯ echo $?
0

In original zbctl, you get 1 in this case.

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