[ 
https://issues.apache.org/jira/browse/FREEMARKER-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ondra Žižka updated FREEMARKER-78:
----------------------------------
    Description: 
It would be quite useful if the following contained {{techTag.toString()}}:

{quote}
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 59]

Java stack trace (for programmers):
----
freemarker.core.InvalidReferenceException: [... Exception message was already 
printed; see it above ...]
        at 
freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
        at 
freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:465)
{quote}

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

Thanks for considering.

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

{quote}
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 59]

Java stack trace (for programmers):
----
freemarker.core.InvalidReferenceException: [... Exception message was already 
printed; see it above ...]
        at 
freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
        at 
freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:465)
{quote}

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.


> Let InvalidReferenceException contain x.toString() of x.missing
> ---------------------------------------------------------------
>
>                 Key: FREEMARKER-78
>                 URL: https://issues.apache.org/jira/browse/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()}}:
> {quote}
> 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 59]
> Java stack trace (for programmers):
> ----
> freemarker.core.InvalidReferenceException: [... Exception message was already 
> printed; see it above ...]
>       at 
> freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
>       at 
> freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:465)
> {quote}
> Now as it doesn't, I need to write a logging line, rebuild the project, and 
> run again. Or debug. Neither is quick :) So this would save quite some time 
> in development cycle.
> Thanks for considering.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to