#[derive(Debug)]
pub enum ParserError {
UnexpectedClosingTag(String, String),
}
impl std::fmt::Display for ParserError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
ParserError::UnexpectedClosingTag(tag, context) => {
write!(
f,
"Unexpected closing tag '{}' ... '{}'",
tag, context
)
}
}
}
}