Improve screen output when an error in a profile has been found

This commit is contained in:
Michael Boelen 2016-05-16 20:56:42 +02:00
parent 573698afdb
commit 933edeeae0
1 changed files with 4 additions and 2 deletions

View File

@ -288,8 +288,10 @@
# Catch all bad options and bail out
*)
LogText "Unknown option ${OPTION} (with value: ${VALUE})"
echo "Fatal error: found errors in profile ${PROFILE}"
echo "Unknown option '${OPTION}' found (with value: ${VALUE})"
${ECHOCMD} ""
${ECHOCMD} "${RED}Error${NORMAL}: found one or more errors in profile ${PROFILE}"
${ECHOCMD} "${WHITE}Details${NORMAL}: Unknown option '${YELLOW}${OPTION}${NORMAL}' found (with value: ${VALUE})"
${ECHOCMD} ""
ExitFatal
;;