metalsmith / layouts

A metalsmith plugin for layouts
MIT License
116 stars 49 forks source link

Add custom error message to include file path #130

Closed killercup closed 7 years ago

killercup commented 7 years ago

This leads to errors like

Error rendering template `content.html` for file `styleguide/text-media.html`: Error: Parse error on line 102:
...      {{#if headline)}}      <div class
-----------------------^
Expecting 'CLOSE', 'OPEN_SEXPR', 'ID', 'OPEN_BLOCK_PARAMS', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'CLOSE_SEXPR'
killercup commented 7 years ago

Just a quick hack I did locally to help with debugging

ismay commented 7 years ago

Hi @killercup, sorry for the late reply. Thanks for the PR!