Skip to content

Commit

Permalink
Refine error messages
Browse files Browse the repository at this point in the history
* Refine error messages
  • Loading branch information
mbonsack authored and GitHub committed Jun 14, 2020
1 parent 4d02aca commit 1fc4af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/sbin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ trap 'kill ${!}; term_handler' SIGTERM
# Stop the container. Errors in this step should only happen with user provided
#Templates
if ! gomplate $(find . -name *.tmpl | sed -E 's/^(\/.*\/)*(.*)\..*$/--file=\2.tmpl --out=\2/') --template t=etc/go_templates/; then
echo Error in Gomplate template unable to continue
echo "Error in Gomplate template; unable to continue, exiting..."
exit 800
fi

Expand All @@ -64,7 +64,7 @@ pid="$!"
sleep 5
if ! ps -p $pid > /dev/null
then
echo "syslog-ng failed to start; PID $pid is not running"
echo "syslog-ng failed to start; PID $pid is not running, exiting..."
if [ "${SC4S_DEBUG_CONTAINER}" != "yes" ]
then
exit $(wait ${pid})
Expand Down

0 comments on commit 1fc4af8

Please sign in to comment.