]> code.citadel.org Git - citadel.git/blobdiff - webcit/subst.c
* print name of context instead of number into the error message.
[citadel.git] / webcit / subst.c
index ccbbbdba2820e1571f451a70eca51f142ea085de..20ff89bf7654185354f269046cf237fb119ba403 100644 (file)
@@ -448,7 +448,7 @@ void clear_local_substs(void) {
        clear_substs (WC);
 }
 
-int NeedNewBuf(type)
+int NeedNewBuf(int type)
 {
        switch(type) {
        case WCS_STRING:
@@ -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 ;
                
        }