adding better debug for wrong term tag in uplc

This commit is contained in:
Kasey White
2022-09-19 14:59:49 -04:00
parent 21d71e94b3
commit 6ccd0aa2fb

View File

@@ -190,8 +190,10 @@ where
6 => Ok(Term::Error), 6 => Ok(Term::Error),
7 => Ok(Term::Builtin(DefaultFunction::decode(d)?)), 7 => Ok(Term::Builtin(DefaultFunction::decode(d)?)),
x => Err(de::Error::Message(format!( x => Err(de::Error::Message(format!(
"Unknown term constructor tag: {}", "Unknown term constructor tag: {} and buffer position is {} and buffer length is {}",
x x,
d.buffer.len() - d.pos,
d.buffer.len()
))), ))),
} }
} }