Skip to content

Commit

Permalink
Fix error logic in e2e script
Browse files Browse the repository at this point in the history
I think this should solve #258
  • Loading branch information
gaearon authored Jul 29, 2016
1 parent 319d272 commit 4d60f08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4d60f08

Please sign in to comment.