before subshell error test hint

This commit is contained in:
pvincent
2026-07-25 13:40:47 +04:00
parent 805dbce919
commit 9880ade93b
3 changed files with 11 additions and 12 deletions
+4 -2
View File
@@ -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'