Skip to content

Commit 334b2ee

Browse files
authored
Merge pull request #498 from ctartici/master
Update sail-operator-setup.sh
2 parents 6fee069 + a1d835e commit 334b2ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

prow/setup/sail-operator-setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ set -u
3232
set -x
3333
# fail if any command in the pipeline fails
3434
set -o pipefail
35+
# Show logs on error
36+
trap 'echo "❌ Script failed. Dumping log:"; echo "--------------------------------"; cat "$LOG_FILE"; echo "--------------------------------"; exit 1' ERR
3537

3638
SKIP_CLEANUP="${SKIP_CLEANUP:-"false"}"
3739

0 commit comments

Comments
 (0)