* print name of context instead of number into the error message.
authorWilfried Göesgens <willi@citadel.org>
Sun, 29 Aug 2010 16:55:50 +0000 (16:55 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Wed, 1 Sep 2010 22:24:39 +0000 (00:24 +0200)
(cherry picked from commit 3c4dab06dfa7658653d7aca0a4025a8c35dcc3bb)

webcit/subst.c

index c12b6590832156be1ee31611d45b6dba4679cd10..20ff89bf7654185354f269046cf237fb119ba403 100644 (file)
@@ -2208,9 +2208,9 @@ void tmpl_iterate_subtmpl(StrBuf *Target, WCTemplputParams *TP)
            (It->XPectContextType != TP->Filter.ContextType)) {
                LogTemplateError(
                        Target, "Iterator", ERR_PARM1, TP,
-                       "requires context of type %d, have %d", 
-                       It->XPectContextType
-                       TP->Filter.ContextType);
+                       "requires context of type %s, have %s", 
+                       ContextName(It->XPectContextType)
+                       ContextName(TP->Filter.ContextType));
                return ;
                
        }