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

Feature Request: Output status code greater than zero when error occurred #17

Open
michaelbutler opened this issue Jun 4, 2019 · 0 comments

Comments

@michaelbutler
Copy link

Normally, we expect simple utilities to respond with the POSIX exit code 0 on success, and something else (e.g. 1) when an error occurred.

root@871ff6bb412b:/opt/bin# publisher -hostname localhost:4466 -topic test_topic -message "Hello testing kafka" -partition 0
Publishing : Hello testing kafka
To: localhost:4466, topic: test_topic, partition: 0
 ----------------------
2019/06/04 21:35:20 Fatal Error:  dial tcp 127.0.0.1:4466: connect: connection refused
2019/06/04 21:35:20 Sending took: 0.657800 ms
root@871ff6bb412b:/opt/bin# echo $?
0

The utility responds with 0 in the error 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