Revision 13237
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
626 | 626 |
die_e() # usage: cmd || [benign_error=1] die_e [|| handle error] |
627 | 627 |
{ |
628 | 628 |
save_e; log++ kw_params benign_error |
629 |
if test "$e" = "$(sig_e SIGPIPE)"; then benign_error=1; fi |
|
629 | 630 |
if test "$benign_error"; then log_local; log++; fi |
630 | 631 |
type="${benign_error:+info}" die "command exited with \ |
631 | 632 |
$(if test "$benign_error"; then echo status; else echo error; fi) $e" |
Also available in: Unified diff
fix: lib/sh/util.sh: die_e(): treat SIGPIPE as benign error