diff --git a/func/main.sh b/func/main.sh index eee652d0b..2d5a9dd86 100644 --- a/func/main.sh +++ b/func/main.sh @@ -223,7 +223,7 @@ is_object_suspended() { spnd=$(grep "$2='$3'" $USER_DATA/$1.conf|grep "SUSPENDED='yes'") fi if [ -z "$spnd" ]; then - echo "Error: $1 $3 is not suspended" + echo "Error: $(basename $1) $3 is not suspended" log_event "$E_SUSPENDED" "$EVENT" exit $E_SUSPENDED fi @@ -237,7 +237,7 @@ is_object_unsuspended() { spnd=$(grep "$2='$3'" $USER_DATA/$1.conf|grep "SUSPENDED='yes'") fi if [ ! -z "$spnd" ]; then - echo "Error: $1 $3 is already suspended" + echo "Error: $(basename $1) $3 is already suspended" log_event "$E_UNSUSPENDED" "$EVENT" exit $E_UNSUSPENDED fi