diff options
author | Ian Kelling <iank@fsf.org> | 2018-07-25 20:59:58 -0400 |
---|---|---|
committer | Ian Kelling <iank@fsf.org> | 2018-07-25 20:59:58 -0400 |
commit | 5891b34cae04c533456fc547eba4e21f00ca913e (patch) | |
tree | 702b9c149b5f02b41868340e3fb5cda19c559025 /subprojects/freeamo/src | |
parent | b868025432f83cfe9ecd0e2a626cf312d2123fb1 (diff) |
fix err error
Diffstat (limited to 'subprojects/freeamo/src')
-rwxr-xr-x | subprojects/freeamo/src/err | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/freeamo/src/err b/subprojects/freeamo/src/err index 97b3cc3..4a68f0a 100755 --- a/subprojects/freeamo/src/err +++ b/subprojects/freeamo/src/err @@ -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 } |