Skip to content

Commit

Permalink
fix: scripts should exit if a thread panics
Browse files Browse the repository at this point in the history
  • Loading branch information
emschwartz committed Jul 8, 2024
1 parent e57dbe2 commit 4bcfb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tb_function.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4bcfb91

Please sign in to comment.