From dd7199e5b7c54300cc02e9011177364c989081aa Mon Sep 17 00:00:00 2001 From: Webber Date: Sun, 27 Sep 2020 21:50:52 +0200 Subject: [PATCH] Add intructions for debugging --- entrypoint.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index d921a97..0af2153 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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