From 71b15ea817495c238764c8ab13f83d525d6ab5a0 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Fri, 12 Sep 2008 01:39:22 +0200
Subject: [PATCH] Include: improved trace verbosity for import command.

---
 src/lib-sieve/plugins/include/cmd-import.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib-sieve/plugins/include/cmd-import.c b/src/lib-sieve/plugins/include/cmd-import.c
index 4ce10392d..9f9f75b54 100644
--- a/src/lib-sieve/plugins/include/cmd-import.c
+++ b/src/lib-sieve/plugins/include/cmd-import.c
@@ -302,7 +302,8 @@ static int opc_import_execute
 		}
 		
 		if ( index >= var_count ) {
-			sieve_runtime_trace_error(renv, "invalid global variable index");
+			sieve_runtime_trace_error(renv, "invalid global variable index (%u > %u)",
+				index, var_count);
 			return SIEVE_EXEC_BIN_CORRUPT;
 		}
 		
-- 
GitLab