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
zbctl uses incorrect exit status 0 on error #3993
Comments
Hi @grexe. Thanks for reporting this. |
Here's a concrete case where it should return an error status but exits with 0:
|
Hey @korthout, can you try to reproduce this on your machine when you have a spare moment? |
@MiguelPires @grexe I've tried to reproduce this on macOS 10.15.3 with Zeebe v 0.22.1 (see: https://github.com/zeebe-io/zeebe/releases/tag/0.22.1), but I've not been able to get the erroneous
|
oh no, as I feared and forgot to mention (sorry for that!), it's the npm wrapper I use that causes the error:
Will open an issue there, please feel free to close this one. |
opened bug in npm wrapper now: camunda-community-hub/zbctl-via-npm#1 |
Describe the bug
When invoking
zbctl
with invalid arguments, or Zeebe is not running at all, it still exits with code0
, which is wrong and makes it hard to integrate in scripts.To Reproduce
Issue
zbctl
when Zeebe is not running, or specify a wrong address.Expected behavior
Ideally, exit code
64
should be used to indicate wrong parameters used, see https://stackoverflow.com/a/1535733/160799Environment:
The text was updated successfully, but these errors were encountered: