Create unknown constructor error for decode

This commit is contained in:
Kasey White
2022-10-23 14:14:04 -04:00
committed by Lucas
parent 360a5b6017
commit c89690aa77
2 changed files with 24 additions and 24 deletions

View File

@@ -20,6 +20,8 @@ pub enum Error {
Message(String),
#[error("Parse error: So far we parsed\n\n{0}\n\nand we ran into error: {1}")]
ParseError(String, anyhow::Error),
#[error("Unknown term constructor tag: {0}.\n\nHere are the buffer bytes ({1} preceding) {2}\n\nBuffer position is {3} and buffer length is {4}")]
UnknownTermConstructor(u8, usize, String, usize, usize),
#[error(transparent)]
Custom(#[from] anyhow::Error),
}