Skip to content

Commit

Permalink
Displaying original PybarsError helpful error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C authored Aug 11, 2017
1 parent 8a03ddf commit a74fd1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre_commit_hooks/validate_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def clean_template(self, filepath, default_value):
compiled_template = self.tmplt_compiler.compile(template_content)
return compiled_template(PybarPlaceholderContext(default_value))
except PybarsError as error:
raise_from(MustacheSubstitutionFail('For HTML template file {}'.format(filepath)), error)
raise_from(MustacheSubstitutionFail('For HTML template file {}: {}'.format(filepath, error)), error)

class PybarPlaceholderContext:
def __init__(self, default):
Expand Down

0 comments on commit a74fd1c

Please sign in to comment.