diff options
Diffstat (limited to 'include/lib.sh')
-rw-r--r-- | include/lib.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh index c9be740a..43b1a318 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -176,6 +176,8 @@ x_() err() { + set -u -e + xbmk_err_val=0 real_err="" && [ -n "${xbmk_err+x}" ] && real_err="$xbmk_err" @@ -196,6 +198,7 @@ err() err_() { + [ $# -lt 1 ] && printf "ERROR (but no error message provided)\n" 1>&2 [ $# -lt 1 ] || printf "ERROR %s: %s\n" "$0" "$1" 1>&2 || : exit 1 } |