Skip to content

Commit 055c589

Browse files
committed
improved error messages
1 parent 0679413 commit 055c589

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ if [ $setup ]; then
7878
fi
7979

8080
if ! git diff --exit-code --quiet --cached; then
81-
echo Aborting due to uncommitted changes in the index
81+
echo Aborting due to uncommitted changes in the index >&2
8282
exit 1
8383
fi
8484

@@ -110,7 +110,7 @@ case $diff in
110110
enable_expanded_output
111111
;;
112112
*)
113-
echo git diff exited with code $diff. Aborting.
113+
echo git diff exited with code $diff. Aborting. Staying on branch $deploy_branch so you can debug. To switch back to master, use: git symbolic-ref HEAD refs/heads/master && git reset --mixed >&2
114114
exit $diff
115115
;;
116116
esac

0 commit comments

Comments
 (0)