diff options
author | david <public@beloved.name> | 2018-07-26 20:58:27 +0200 |
---|---|---|
committer | david <public@beloved.name> | 2018-07-26 20:58:27 +0200 |
commit | ddab6e2df15722baf1c15522bd39c49be61c7b48 (patch) | |
tree | 9c196c126dc85abada0bc4387db0e3172f1bce1a /err | |
parent | b04e6c6a5b5dac037959a2a59ab2a59e8c0c67b7 (diff) |
Updated err
Diffstat (limited to 'err')
-rwxr-xr-x | err | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -46,7 +46,7 @@ err-bash-trace() { fi indent=$((frame-start+1)) indent=$((indent < max_indent ? indent : max_indent)) - printf "%${indent}s↳%sin \`%s" '' "$source" "${FUNCNAME[frame]}" + printf "%${indent}s↳%sin \`%s" '' "$source" "${FUNCNAME[frame]}" if $extdebug; then for ((i=argc_index-1; i >= argc_index-argc; i--)); do printf " %s" "${BASH_ARGV[i]}" @@ -70,7 +70,7 @@ err-catch() { echo "${BASH_SOURCE[1]}:${BASH_LINENO[0]}:in \`$BASH_COMMAND' returned $err" # err trap does not work within an error trap, the following line: err-bash-trace 2; set -e - "${_errcatch_cleanup[@]:-}" # note :- is to be compatible with set -u + "${_errcatch_cleanup[@]:-:}" # note :-: is to be compatible with set -u echo "$0: exiting with code $err" exit $err } |