summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 0019d1c..f57e487 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -45,8 +45,10 @@ pub enum DeserializeError {
TooBig(#[from] TryFromIntError),
#[error("invalid UTF-16: {0}")]
InvalidUtf16(#[from] std::char::DecodeUtf16Error),
- #[error("unimplemented")]
- Unimplemented,
+ #[error("invalid {0} enum variant {1}")]
+ InvalidEnumVariant(&'static str, u64),
+ #[error("invalid constant - wanted: {0} - got: {1}")]
+ InvalidConst(u64, u64),
}
impl From<Infallible> for DeserializeError {