mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +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()),
|
Ok(string) => Self::from_string(string.as_str()),
|
||||||
Err(_) => Err(Error::Decode),
|
Err(_) => Err(Error::Decode),
|
||||||
},
|
},
|
||||||
None => Err(Error::Undefined),
|
None => Err(Error::Protocol),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
Decode,
|
Decode,
|
||||||
|
Protocol,
|
||||||
Undefined,
|
Undefined,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue