Skip to content

Commit

Permalink
Add intructions for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
webbertakken committed Sep 27, 2020
1 parent d4d1138 commit dd7199e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,29 @@ xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
-quit \
-returnlicense

# Catch exit code
UNITY_EXIT_CODE=$?

#
# Instructions for debugging
#

if [[ $UNITY_EXIT_CODE -gt 0 ]]; then
echo ""
echo "###########################"
echo "# Failure #"
echo "###########################"
echo ""
echo "Please note that the exit code is not very descriptive."
echo "Most likely it will not help you solve the issue."
echo ""
echo "To find the reason for failure: please search for errors in the log above."
echo ""
exit $UNITY_EXIT_CODE
fi;

#
# Exit with code from the return-license step.
#

exit $UNITY_EXIT_CODE

0 comments on commit dd7199e

Please sign in to comment.