more detailed parse errors when decoding with flat

This commit is contained in:
Kasey White
2022-10-22 18:35:16 -04:00
committed by Lucas
parent 4ef654b660
commit 15cfb22c8f
3 changed files with 207 additions and 4 deletions

View File

@@ -18,6 +18,8 @@ pub enum Error {
DecodeChar(u32),
#[error("{0}")]
Message(String),
#[error("Parse error: So far we parsed {0} and we ran into error: {1}")]
ParseError(String, anyhow::Error),
#[error(transparent)]
Custom(#[from] anyhow::Error),
}