byrokrat / giroapp

Command line app for managing autogiro donations.
GNU General Public License v3.0
4 stars 2 forks source link

Display errors in output generating commands #114

Closed hanneskod closed 7 years ago

hanneskod commented 7 years ago

When I run

$ giroapp show not-a-valid-donor

then the app will exit whit a non-0 exit status, but no message describing the error is presented (though it is logged).

This is because the show command is configured to discard regular application output to not interfere with the command output. And that blocks out the error message.

Solution: differentiate betweed std_out and err_out and leave err_out active when std_out is blocked.