1. Bill Welliver
  2. fins

Commits

Bill Welliver  committed 6b6e9c9

hopefully errors will be logged when compiling a template fails outside of parsing the psp.

  • Participants
  • Parent commits eeec211
  • Branches default

Comments (0)

Files changed (1)

File lib/Fins.pmod/FinsView.pike

View file
   {
     context = default_context();
     context->application = app;
-	context->view = this;
+    context->view = this;
   }
 
   if(!templateName || !stringp(templateName))
 
   if(!(t = templates[templateType][templateName]))
   {
-    t = templateType(templateName, context, is_layout);
-
+ //   werror("trying for template.\n");
+    mixed err = catch(
+    t = templateType(templateName, context, is_layout));
+    if(err)
+      log->exception("error while compiling.", err);
+//    werror("got it.\n");
     if(!t)
     {
       throw(Error.Generic("get_template(): unable to load template " + templateName + "\n"));
   }
 
 //  if(t) werror("success.\n");
-
   return t;
 
 }