diff --git a/selenium_grid_hub_wait_ready.sh b/selenium_grid_hub_wait_ready.sh index bb595a02..20b72f58 100755 --- a/selenium_grid_hub_wait_ready.sh +++ b/selenium_grid_hub_wait_ready.sh @@ -41,7 +41,7 @@ if [ -n "$max_secs" ] && timestamp "setting timeout to $max_secs secs" TMOUT="$max_secs" # shellcheck disable=SC2064 - trap "Timed out waiting for Selenium Grid Hub to come up after $max_secs secs" EXIT + trap "echo 'Timed out waiting for Selenium Grid Hub to come up after $max_secs secs' >&2; exit 1" EXIT fi while :; do