Revision 9036
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
54 | 54 |
fi # load new aliases |
55 | 55 |
if self_being_included; then |
56 | 56 |
|
57 |
# usage: cmd || die msg |
|
58 |
die () { save_e; echo "$1" >&2; rethrow; } |
|
59 |
|
|
57 | 60 |
# usage: cmd || { save_e; log_e; ...; rethrow; } |
58 | 61 |
log_e () { echo "! command exited with error $e" >&2; } |
59 | 62 |
|
Also available in: Unified diff
lib/sh/util.sh: exceptions: added die ()