improve logging for failed database check

This commit is contained in:
buanet
2024-04-06 00:25:20 +02:00
parent bfe581df36
commit c9a4a11265
3 changed files with 7 additions and 6 deletions

View File

@@ -343,12 +343,10 @@ else
echo "Done."
echo " "
else
errormsg=$(gosu iobroker iob uuid 2>&1 | sed 's/^/[DEBUG] /')
echo "Failed."
if [[ "$debug" == "true" ]]; then
echo "[DEBUG] Error message: "
echo "$errormsg"
fi
errormsg=$(gosu iobroker iob uuid 2>&1 | sed 's/^/[ERROR] /')
echo "$errormsg"
echo " "
echo "Please check your configuration and try again."
echo "For more information see ioBroker Docker image docs (https://docs.buanet.de/iobroker-docker-image/docs)."
stop_on_error