mirror of
https://github.com/myvesta/vesta
synced 2025-07-16 10:03:23 -07:00
added error message dialog
This commit is contained in:
parent
25a2926881
commit
3f5617c0a6
36 changed files with 494 additions and 18 deletions
|
@ -194,7 +194,7 @@ is_object_suspended() {
|
|||
spnd=$(grep "$2='$3'" $USER_DATA/$1.conf|grep "SUSPENDED='yes'")
|
||||
fi
|
||||
if [ -z "$spnd" ]; then
|
||||
echo "Error: $3 is not suspended"
|
||||
echo "Error: $1 $3 is not suspended"
|
||||
log_event "$E_SUSPENDED" "$EVENT"
|
||||
exit $E_SUSPENDED
|
||||
fi
|
||||
|
@ -208,7 +208,7 @@ is_object_unsuspended() {
|
|||
spnd=$(grep "$2='$3'" $USER_DATA/$1.conf|grep "SUSPENDED='yes'")
|
||||
fi
|
||||
if [ ! -z "$spnd" ]; then
|
||||
echo "Error: $3 is suspended"
|
||||
echo "Error: $1 $3 is already suspended"
|
||||
log_event "$E_UNSUSPENDED" "$EVENT"
|
||||
exit $E_UNSUSPENDED
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue