* print name of context instead of number into the error message.
[citadel.git] / 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 ;
                
        }