mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
add Protocol error
This commit is contained in:
parent
268dab6ed3
commit
8f7bbaec76
2 changed files with 2 additions and 1 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Decode,
|
||||
Protocol,
|
||||
Undefined,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue