fix status code error types

This commit is contained in:
yggverse 2024-10-30 04:35:04 +02:00
parent 8f7bbaec76
commit c2b06fd688
4 changed files with 5 additions and 3 deletions

View file

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