# failexit.mrg - bash but might work as /bin/sh - can use as ' source ~/bin/failexit.mrg ' function failexit () { echo '! Something failed! Code: '"$1 $2" # code # (and optional description) exit $1 }