mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 01:25:32 +00:00
enshort common error name
This commit is contained in:
parent
809e54b887
commit
a06e4e9eff
16 changed files with 49 additions and 49 deletions
|
|
@ -12,21 +12,21 @@ pub enum Error {
|
|||
impl Display for Error {
|
||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||
match self {
|
||||
Self::Data(reason) => {
|
||||
write!(f, "Data error: {reason}")
|
||||
Self::Data(e) => {
|
||||
write!(f, "Data error: {e}")
|
||||
}
|
||||
Self::InputStream(_, reason) => {
|
||||
Self::InputStream(_, e) => {
|
||||
// @TODO
|
||||
write!(f, "Input stream error: {reason}")
|
||||
write!(f, "Input stream error: {e}")
|
||||
}
|
||||
Self::Mime(reason) => {
|
||||
write!(f, "MIME error: {reason}")
|
||||
Self::Mime(e) => {
|
||||
write!(f, "MIME error: {e}")
|
||||
}
|
||||
Self::Protocol => {
|
||||
write!(f, "Protocol error")
|
||||
}
|
||||
Self::Status(reason) => {
|
||||
write!(f, "Status error: {reason}")
|
||||
Self::Status(e) => {
|
||||
write!(f, "Status error: {e}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue