diff cmd.c @ 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, 20 Aug 2019 20:19:53 +0200
parents e3ad9859c51d
children
line wrap: on
line diff
--- a/cmd.c	Fri Aug 09 14:04:46 2019 +0200
+++ b/cmd.c	Tue Aug 20 20:19:53 2019 +0200
@@ -1176,7 +1176,7 @@
 	}
 
 	if (pwfile_remove_group(ctx, argv[1]) != 0) {
-		pwm_err(ctx, "empty group \"%s\" does not exist", argv[1]);
+		pwm_err(ctx, "group \"%s\" is not empty or does not exist", argv[1]);
 		return (CMD_ERR);
 	}