unknown_error_bypass

This commit is contained in:
pvincent
2026-08-19 11:09:43 +04:00
parent 4368dd0f4f
commit ac308f9dad
5 changed files with 50 additions and 7 deletions
+7 -3
View File
@@ -571,9 +571,13 @@ function on_exit {
if ! is_true $CHILD_PROCESS; then
2>&3 >&3 dump_stderr
if [[ -v failure_type && $failure_code -gt 0 ]]; then
2>&3 >&4 dump_failure
if [[ -v error_source ]]; then
2>&3 >&4 dump_stacktrace
if [[ $failure_type == 'UNKNOWN ERROR' && $failure_payload == "source \"\$SCRIPT\"" ]]; then
miaou_debug "<unknown_error bypass=true cause=source_script/>"
else
2>&3 >&4 dump_failure
if [[ -v error_source ]]; then
2>&3 >&4 dump_stacktrace
fi
fi
fi
elif [[ -v failure_type ]]; then