Add DisplayError for showing errors on screen

This commit is contained in:
Michael Boelen 2016-07-24 13:11:32 +02:00
parent 65eaeb7ce9
commit 9a2dcc9dec
1 changed files with 15 additions and 0 deletions

View File

@ -38,6 +38,7 @@
# DirectoryExists Check if a directory exists on the disk
# DiscoverProfiles Determine available profiles on system
# Display Output text to screen with colors and identation
# DisplayError Show an error on screen
# DisplayManual Output text to screen without any layout
# DisplayToolTip Show a tip for improving usage of the tool
# ExitClean Stop the program (cleanly), with exit code 0
@ -525,6 +526,20 @@
}
################################################################################
# Name : DisplayError()
# Description : Show error on screen
#
# Input : $1 = text (string)
# Returns : <nothing>
################################################################################
DisplayError() {
${ECHOCMD} "${WARNING}Error${NORMAL}: ${BOLD}$1${NORMAL}"
${ECHOCMD} ""
}
################################################################################
# Name : DisplayManual()
# Description : Show text on screen, without any markup