Print error message without DEBUG
This commit is contained in:
parent
700d6d2c5c
commit
54cf9ba91e
|
@ -72,8 +72,8 @@ error_message() { # {{{
|
|||
local_error_message="${1}"
|
||||
local_error_code="${2}"
|
||||
|
||||
## Print message if DEBUG is enable (=0)
|
||||
[ "${DEBUG}" -eq "0" ] && printf '%b\n' "ERROR − ${PROGNAME} : ${RED}${local_error_message}${RESET}"
|
||||
## Print error message
|
||||
printf '%b\n' "ERROR − ${PROGNAME} : ${RED}${local_error_message}${RESET}"
|
||||
|
||||
exit "${local_error_code:=66}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue