mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2025-11-21 01:36:34 +00:00
Implemented Failed message in error function
This commit is contained in:
@@ -58,7 +58,13 @@ success(){
|
||||
}
|
||||
|
||||
error(){
|
||||
message "${COLOR_RED}" "ERROR" "$1 -> Leaving program."
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
message="Failed."
|
||||
else
|
||||
message="$1"
|
||||
fi
|
||||
message "${COLOR_RED}" "ERROR" "$message -> Leaving program."
|
||||
if declare -f "destructor" > /dev/null
|
||||
then
|
||||
info "Calling destructor..."
|
||||
|
||||
Reference in New Issue
Block a user