piotrmurach / tty-command

Execute shell commands with pretty output logging and capture stdout, stderr and exit status.
https://ttytoolkit.org
MIT License
400 stars 34 forks source link

Are you supposed to always use `rescue TTY::Command::ExitError`? #40

Closed revolter closed 6 years ago

revolter commented 6 years ago

Is there a case in which a command doesn't succeeds, but also doesn't throw TTY::Command::ExitError? If not, does this mean that you're supposed to always enclose the run() in begin ... recue TTY::Command::ExitError? If yes, should this be mentioned in the README?

jrochkind commented 6 years ago

https://github.com/piotrmurach/tty-command#22-run