boilerplate_parser/
error.rs

1use super::*;
2
3#[derive(Debug, PartialEq)]
4pub enum Error {
5  Unclosed(Block),
6}
7
8impl std::error::Error for Error {}
9
10impl Display for Error {
11  fn fmt(&self, f: &mut Formatter) -> fmt::Result {
12    match self {
13      Self::Unclosed(block) => write!(f, "unmatched `{}`", block.open_delimiter()),
14    }
15  }
16}