diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 { |