diff --git a/src/lib-sieve/sieve-validator.c b/src/lib-sieve/sieve-validator.c
index 08c8f72cd3b7d291e1e99aa601d472523d8836f0..ed1e18c19cc9befa4498559b921ef6edfc9c967c 100644
--- a/src/lib-sieve/sieve-validator.c
+++ b/src/lib-sieve/sieve-validator.c
@@ -879,7 +879,7 @@ static bool sieve_validate_command_subtests
 			switch ( ctype ) {
 			case SCT_TEST:
 				sieve_command_validate_error(valdtr, cmd, 
-					"the %s %s accepts no sub-tests, but one is specified anyway", 
+					"the %s %s accepts no sub-tests, but tests are specified", 
 					cmd->command->identifier, sieve_command_type_name(cmd->command));
 				break;
 			case SCT_NONE:
diff --git a/tests/compile/errors.svtest b/tests/compile/errors.svtest
index 81a389bf01e14c1da6854f8b78518d9980252eb7..6dfa56b70eaebf8d3fa99a7b963e5821b4defe68 100644
--- a/tests/compile/errors.svtest
+++ b/tests/compile/errors.svtest
@@ -80,7 +80,7 @@ test "Header errors" {
 	}
 
 	if not test_error :index 7 :matches 
-		"*header test accepts no sub-tests* is specified*" {
+		"*header test accepts no sub-tests* specified*" {
 		test_fail "error 7 is invalid";
 	}
 
@@ -332,7 +332,7 @@ test "Typos" {
 	}
 
 	if not test_error :index 2 :matches
-		"*fileinto command * no *tests* one is specified*" {
+		"*fileinto command * no *tests* specified*" {
 		test_fail "error 2 is invalid";
 	}