projects/pwm

changeset 41:0af8d2d8cd1a

Improve error message of removegroup command

The removegroup comman may also fail if the group is not empty.
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Tue Aug 20 20:19:53 2019 +0200 (9 months ago)
parents e3ad9859c51d
children fb995e5d54e9
files cmd.c
line diff
     1.1 --- a/cmd.c	Fri Aug 09 14:04:46 2019 +0200
     1.2 +++ b/cmd.c	Tue Aug 20 20:19:53 2019 +0200
     1.3 @@ -1176,7 +1176,7 @@
     1.4  	}
     1.5  
     1.6  	if (pwfile_remove_group(ctx, argv[1]) != 0) {
     1.7 -		pwm_err(ctx, "empty group \"%s\" does not exist", argv[1]);
     1.8 +		pwm_err(ctx, "group \"%s\" is not empty or does not exist", argv[1]);
     1.9  		return (CMD_ERR);
    1.10  	}
    1.11