Skip to content

Commit 4d60f08

Browse files
authored
Fix error logic in e2e script
I think this should solve #258
1 parent 319d272 commit 4d60f08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tasks/e2e.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ function cleanup {
1616

1717
function handle_error {
1818
echo "$(basename $0): \033[31mERROR!\033[m An error was encountered executing \033[36mline $1\033[m."
19-
handle_exit
19+
cleanup
20+
echo 'Exiting with error.'
2021
exit 1
2122
}
2223

2324
function handle_exit {
2425
cleanup
25-
echo 'Exiting.'
26+
echo 'Exiting without error.'
2627
exit
2728
}
2829

0 commit comments

Comments
 (0)