From 4d60f0865668d4b2471ad9c484a95d7b45dcc8eb Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 29 Jul 2016 11:31:27 +0100 Subject: [PATCH] Fix error logic in e2e script I think this should solve #258 --- tasks/e2e.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/e2e.sh b/tasks/e2e.sh index 8a4a1ffa..198de1d2 100755 --- a/tasks/e2e.sh +++ b/tasks/e2e.sh @@ -16,13 +16,14 @@ function cleanup { function handle_error { echo "$(basename $0): \033[31mERROR!\033[m An error was encountered executing \033[36mline $1\033[m." - handle_exit + cleanup + echo 'Exiting with error.' exit 1 } function handle_exit { cleanup - echo 'Exiting.' + echo 'Exiting without error.' exit }