Revision 9449
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
284 | 284 |
die_e() # usage: cmd || [benign_error=1] die_e [|| handle error] |
285 | 285 |
{ |
286 | 286 |
save_e; kw_params benign_error |
287 |
if test "$benign_error"; then log++; fi |
|
287 | 288 |
type="${benign_error:+info}" die "command exited with \ |
288 | 289 |
$(if test "$benign_error"; then echo status; else echo error; fi) $e" |
289 | 290 |
rethrow |
Also available in: Unified diff
lib/sh/util.sh: die_e(): benign errors: increase log_level so that a benign non-zero exit status will only be displayed at debug verbosities (2+) (it is confusing otherwise)