Closed fgaz closed 2 years ago
Could someone triage this? Or point me to where errors are handled so I can prepare a PR fixing this?
Hello,
There are many areas where logging and errors are handled throughout. It does seem we've handled errors incorrectly, and takes a bit further research to determine exactly where we went wrong. Any place we make use of the Logger, and more specifically logger.LogError
is where you'd want to start looking to get to the bottom of this.
Summary
teleirc exits with code 0/success even on failure. This is a problem for service supervisors that try to restart the service when it fails or signal the failure to the administrator.
Standard debugging steps
How to reproduce?
echo $?
returns 0Expected behavior
Teleirc should return an exit code != 0 on error
Stacktrace
Other details
this was on 2.0.1, not sure if it's fixed on 2.1, but I don't see anything relevant in the changelog