freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ondra Žižka (JIRA) <>
Subject [jira] [Created] (FREEMARKER-78) Let InvalidReferenceException contain x.toString() of x.missing
Date Sat, 30 Sep 2017 03:49:01 GMT
Ondra Žižka created FREEMARKER-78:

             Summary: Let InvalidReferenceException contain x.toString() of x.missing
                 Key: FREEMARKER-78
             Project: Apache Freemarker
          Issue Type: Improvement
          Components: engine
    Affects Versions: 2.3.26-incubating
            Reporter: Ondra Žižka
            Priority: Minor

It would be quite useful if the following contained {{techTag.toString()}}:

FreeMarker template error (DEBUG mode; use RETHROW in production!):
The following has evaluated to null or missing:
==> techTag.title  [in template "reports/templates/techReport-boxes.ftl" at line 133, column

Java stack trace (for programmers):
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see
it above ...]
	at freemarker.core.InvalidReferenceException.getInstance(
	at freemarker.core.EvalUtil.coerceModelToTextualCommon(

If it doesn't, I need to write a logging line, rebuild the project, and run again. Or debug.
Neither is short :) So this would save quite some time in development cycle.

Thanks for considering.

This message was sent by Atlassian JIRA

View raw message