From 71fa5a02ae842d9e9cc0b04e30744d5223f1d61e Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Sun, 19 Oct 2008 17:56:01 +0200
Subject: [PATCH] Corrected error message.

---
 src/lib-sieve/sieve-validator.c | 2 +-
 tests/compile/errors.svtest     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib-sieve/sieve-validator.c b/src/lib-sieve/sieve-validator.c
index 08c8f72cd..ed1e18c19 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 81a389bf0..6dfa56b70 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";
 	}
 
-- 
GitLab