superblk / terve

Deprecated: Unified, minimal terraform and terragrunt version manager
MIT License
10 stars 3 forks source link

Clean up error message when piping output to another program fails #22

Closed jpalomaki closed 3 years ago

jpalomaki commented 3 years ago
$ terve l tg r | nosuchthing
nosuchthing: command not found
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', library/std/src/io/stdio.rs:940:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

See https://github.com/rust-lang/rust/issues/46016#issuecomment-428696159