* 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 Göesgens <willi@citadel.org>
Sun, 29 Aug 2010 16:55:50 +0000 (16:55 +0000)
webcit/subst.c

index 5fff6349a8993b57bbae1568c3db8d9a4005ed8c..1807211afc3278154c21e25a97615bebf1b068a2 100644 (file)
@@ -2316,9 +2316,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 ;
                
        }