fix return 0 show error_box

This commit is contained in:
pvincent
2026-08-07 18:49:40 +04:00
parent 5e283e63dd
commit 3f56f022e4
7 changed files with 67 additions and 8 deletions
+1 -2
View File
@@ -81,7 +81,6 @@ function on_return {
print_miaou_error "${BASH_SOURCE[1]}" "${BASH_LINENO[0]}" "${failure_code}" "${failure_type}" "${failure_payload}"
miaou_debug "<on_return code=$failure_code payload=$failure_payload/>"
fi
true
}
# overridden function which permits backtracing of the original `exit` statement
@@ -568,7 +567,7 @@ function on_exit {
if ! is_true $CHILD_PROCESS; then
2>&3 >&3 dump_stderr
if [[ -v failure_type ]]; then
if [[ -v failure_type && $failure_code -gt 0 ]]; then
2>&3 >&4 dump_failure
if [[ -v error_source ]]; then
2>&3 >&4 dump_stacktrace