Skip to content

Commit a74fd1c

Browse files
authored
Displaying original PybarsError helpful error message
1 parent 8a03ddf commit a74fd1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pre_commit_hooks/validate_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def clean_template(self, filepath, default_value):
102102
compiled_template = self.tmplt_compiler.compile(template_content)
103103
return compiled_template(PybarPlaceholderContext(default_value))
104104
except PybarsError as error:
105-
raise_from(MustacheSubstitutionFail('For HTML template file {}'.format(filepath)), error)
105+
raise_from(MustacheSubstitutionFail('For HTML template file {}: {}'.format(filepath, error)), error)
106106

107107
class PybarPlaceholderContext:
108108
def __init__(self, default):

0 commit comments

Comments
 (0)