From 4bcfb91b8f82cbbf53b76ec4ec297af19341d0a3 Mon Sep 17 00:00:00 2001 From: Evan Schwartz <3262610+emschwartz@users.noreply.github.com> Date: Mon, 8 Jul 2024 16:26:35 -0400 Subject: [PATCH] fix: scripts should exit if a thread panics --- tools/tb_function.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tb_function.sh b/tools/tb_function.sh index 4eced8a..6504841 100755 --- a/tools/tb_function.sh +++ b/tools/tb_function.sh @@ -19,7 +19,7 @@ function tb() { # The one exception is if an account or transfer already exists, it will return the "exists" error. # We treat the "exists" error as a successful operation here. while IFS= read -r line; do - if [[ $line =~ ^Fail|Cannot && $line != *"Result.exists." && $line != *"Result.linked_event_failed." ]]; then + if [[ $line =~ Fail|Cannot|panic && $line != *"Result.exists." && $line != *"Result.linked_event_failed." ]]; then exit 1 fi done <<< "$output"