add Protocol error

This commit is contained in:
yggverse 2024-10-30 04:31:26 +02:00
parent 268dab6ed3
commit 8f7bbaec76
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ impl Mime {
Ok(string) => Self::from_string(string.as_str()),
Err(_) => Err(Error::Decode),
},
None => Err(Error::Undefined),
None => Err(Error::Protocol),
}
}

View file

@ -1,5 +1,6 @@
#[derive(Debug)]
pub enum Error {
Decode,
Protocol,
Undefined,
}