mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 01:25:32 +00:00
fix route by first byte
This commit is contained in:
parent
788b792167
commit
a5fbca2ace
4 changed files with 15 additions and 15 deletions
|
|
@ -2,7 +2,7 @@ use std::fmt::{Display, Formatter, Result};
|
|||
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Code(u8),
|
||||
Code,
|
||||
Permanent(super::permanent::Error),
|
||||
Protocol,
|
||||
Temporary(super::temporary::Error),
|
||||
|
|
@ -11,8 +11,8 @@ pub enum Error {
|
|||
impl Display for Error {
|
||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||
match self {
|
||||
Self::Code(e) => {
|
||||
write!(f, "Code group error: {e}*")
|
||||
Self::Code => {
|
||||
write!(f, "Code group error")
|
||||
}
|
||||
Self::Permanent(e) => {
|
||||
write!(f, "Permanent failure group error: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue