Project

General

Profile

« Previous | Next » 

Revision 9036

lib/sh/util.sh: exceptions: added die ()

View differences:

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