freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject incubator-freemarker git commit: Added a missing cause exception in .get_optional_template
Date Mon, 26 Mar 2018 19:36:34 GMT
Repository: incubator-freemarker
Updated Branches:
  refs/heads/2.3-gae 2a2a4e774 -> 2a774e591


Added a missing cause exception in .get_optional_template


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/2a774e59
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/2a774e59
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/2a774e59

Branch: refs/heads/2.3-gae
Commit: 2a774e5911217b6353eddd248c6a26e6152e6b2c
Parents: 2a2a4e7
Author: ddekany <ddekany@apache.org>
Authored: Mon Mar 26 21:36:24 2018 +0200
Committer: ddekany <ddekany@apache.org>
Committed: Mon Mar 26 21:36:24 2018 +0200

----------------------------------------------------------------------
 src/main/java/freemarker/core/GetOptionalTemplateMethod.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/2a774e59/src/main/java/freemarker/core/GetOptionalTemplateMethod.java
----------------------------------------------------------------------
diff --git a/src/main/java/freemarker/core/GetOptionalTemplateMethod.java b/src/main/java/freemarker/core/GetOptionalTemplateMethod.java
index c6ba7f3..15ea527 100644
--- a/src/main/java/freemarker/core/GetOptionalTemplateMethod.java
+++ b/src/main/java/freemarker/core/GetOptionalTemplateMethod.java
@@ -138,7 +138,8 @@ class GetOptionalTemplateMethod implements TemplateMethodModelEx {
             template = env.getTemplateForInclusion(absTemplateName, encoding, parse, true);
         } catch (IOException e) {
             throw new _TemplateModelException(
-                    "Error when trying to include template ", new _DelayedJQuote(absTemplateName));
+                    e, "Error when trying to include template ", new _DelayedJQuote(absTemplateName)
+                        + "; see cause exception");
         }
         
         SimpleHash result = new SimpleHash(env.getObjectWrapper());


Mime
View raw message