before subshell error test hint
This commit is contained in:
+4
-2
@@ -168,8 +168,10 @@ function on_exit {
|
||||
last_trim=false # keep the last error for next stacktrace
|
||||
error_block=false
|
||||
failure_type='SUBSHELL_ERROR'
|
||||
>&4 echo "SUBSHELL_ERROR caught up"
|
||||
stack_functions[0]="${stack_functions[0]} (hint: prefer source than subshell:2)"
|
||||
#
|
||||
# >&4 echo "SUBSHELL_ERROR caught up ${BASH_SOURCE[*]} ${BASH_LINENO[*]}"
|
||||
#
|
||||
stack_functions[0]="${stack_functions[0]} (hint: prefer source than subshell)"
|
||||
[[ "${code}" == 128 ]] && failure_type='SUBSHELL_SOURCE_NOT_FOUND'
|
||||
else
|
||||
failure_type='UNDEFINED'
|
||||
|
||||
Reference in New Issue
Block a user