From 8214c12e8d5bf29a401e57cf0b14c28e012525d0 Mon Sep 17 00:00:00 2001 From: pvincent Date: Tue, 28 Jul 2026 09:14:55 +0400 Subject: [PATCH] poc4 --- poc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/poc b/poc index 94a2c4d..b529779 100755 --- a/poc +++ b/poc @@ -182,6 +182,13 @@ function on_exit { code="${1:-0}" 2>&3 >&3 dump_stderr + # tmp_error already filled up through the dump_stderr call + if [[ $code -gt 0 && ${#tmp_error[@]} -gt 0 ]]; then + local last_error + last_error="${tmp_error[-1]}" + miaou_debug "" + fi + if [[ -v failure_type ]]; then 2>&3 >/dev/tty dump_failure 2>&3 >/dev/tty dump_stacktrace