Menu

#402 Invalid directive error a little misleading

2.3.21
closed-fixed
nobody
None
9
2014-10-12
2013-09-27
Vladimir B.
No

Given a template where closing tag had / missed like the below:

<#assign i=3><#list 1..i as k>${k}<#list>

The following error is given:

Unknown directive: #list. Help (latest version): http://freemarker.org/docs/ref_directive_alphaidx.html; you're using FreeMarker 2.3.20.

Took a bit of debugging and thinking to realize it should have been:

<#assign i=3><#list 1..i as k>${k}

Discussion

  • Dániel Dékány

    Actually, that stands for any directives with required parameters. Like <#if> will tell that if is unknown.

     
  • Dániel Dékány

    • status: open --> open-accepted
    • Group: -->
     
  • Dániel Dékány

    • Group: --> 2.3.21
     
  • Dániel Dékány

    • status: open-accepted --> open-fixed
     
  • Dániel Dékány

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.