Improved invalid closing tag error message.

This commit is contained in:
Steven Panek 2012-06-05 11:38:55 +00:00
parent 78086f92ee
commit 743cb21c1c

View file

@ -142,7 +142,7 @@ void parser::operator()()
std::stringstream ss;
ss << elements.top().start_line << " " << elements.top().file;
error(lineno_string(i18n_symbols, ss.str(),
N_("Missing closing tag for tag $tag at $pos")));
N_("Missing closing tag for tag [$tag] at $pos")));
}
}
@ -205,7 +205,7 @@ void parser::parse_element()
std::stringstream ss;
ss << elements.top().start_line << " " << elements.top().file;
error(lineno_string(i18n_symbols, ss.str(),
N_("Found invalid closing tag $tag2 for tag $tag1 (opened at $pos)")));
N_("Found invalid closing tag [/$tag2] for tag [$tag1] (opened at $pos)")));
}
if(validator_){
element & el= elements.top();