|
|
|
@ -162,7 +162,6 @@ function on_exit { |
|
|
|
fi |
|
|
|
else |
|
|
|
failure_payload="${last_error}" |
|
|
|
miaou_debug "UNDEFINED last error=${last_error}" |
|
|
|
regex="╟─⟶" |
|
|
|
if [[ "$last_error" =~ $regex ]]; then |
|
|
|
last_trim=false # keep the last error for next stacktrace |
|
|
|
@ -174,11 +173,7 @@ function on_exit { |
|
|
|
stack_functions[0]="${stack_functions[0]} (hint: prefer source than subshell)" |
|
|
|
[[ "${code}" == 128 ]] && failure_type='SUBSHELL_SOURCE_NOT_FOUND' |
|
|
|
else |
|
|
|
failure_type='UNDEFINED' |
|
|
|
regex='^subshell term:' |
|
|
|
if [[ "$last_error" =~ $regex ]]; then |
|
|
|
failure_type='SUBSHELL_TERM2' |
|
|
|
fi |
|
|
|
failure_type='COMMAND_ERROR' |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|