Add more context to UNCLOSED_TAG error message

This commit is contained in:
Wilson Lin 2018-08-08 13:38:50 +12:00
parent d1f3476f4b
commit 7be3f6b09b
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void hbs_tag(hbs_options_t so, hbu_pipe_t pipe, hb_char_t *parent) {
hbu_pipe_require(pipe, '>');
if (!hbu_buffer_equal(opening_name, closing_name)) {
hbu_pipe_error(pipe, HBE_PARSE_UNCLOSED_TAG, "Tag not closed");
hbu_pipe_error(pipe, HBE_PARSE_UNCLOSED_TAG, "Tag not closed (expected `%s` closing tag, got `%s`)", tag_name, hbu_buffer_underlying(closing_name));
}
goto cleanup;