From 0959ccd0d976340593c966a39f009e023e953f90 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 13 Apr 2011 14:25:41 -0700 Subject: [PATCH] More tidying. --- src/main/java/com/samskivert/mustache/Mustache.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/samskivert/mustache/Mustache.java b/src/main/java/com/samskivert/mustache/Mustache.java index 4456ad9..79e7b72 100644 --- a/src/main/java/com/samskivert/mustache/Mustache.java +++ b/src/main/java/com/samskivert/mustache/Mustache.java @@ -387,15 +387,15 @@ public class Mustache protected static class IncludedTemplateSegment extends Template.Segment { public IncludedTemplateSegment (final String templateName, final Compiler compiler) { try { - template = compiler.compile(compiler.loader.getTemplate(templateName)); + _template = compiler.compile(compiler.loader.getTemplate(templateName)); } catch (Exception e) { - throw new IllegalArgumentException("unable to load " + templateName, e); + throw new MustacheException("Unable to load template: " + templateName, e); } } @Override public void execute (Template tmpl, Template.Context ctx, Writer out) { template.execute(ctx.data, out); } - private final Template template; + protected final Template _template; } /** A helper class for named segments. */