# cargo about generate --format json | head -n0
thread 'main' panicked at library/std/src/io/stdio.rs:1118:9:
failed printing to stdout: Broken pipe (os error 32)
Expected behavior
cargo about should not panic. Instead it should handle SIGPIPE and exit with exit code 141. See https://github.com/kurtbuilds/sigpipe for an example on how to solve this.
Describe the bug When encountering SIGPIPE, the program panics. This is almost never correct, but default rust behaviour:
https://github.com/rust-lang/rust/issues/46016 https://github.com/rust-lang/rust/issues/62569
To Reproduce
Expected behavior cargo about should not panic. Instead it should handle SIGPIPE and exit with exit code 141. See https://github.com/kurtbuilds/sigpipe for an example on how to solve this.
Device: