draft new api version

This commit is contained in:
yggverse 2024-11-27 05:50:09 +02:00
parent 67d486cc4d
commit 3a9e84a3d9
19 changed files with 490 additions and 87 deletions

View file

@ -43,7 +43,7 @@ impl Status {
match buffer.get(0..2) {
Some(value) => match GString::from_utf8(value.to_vec()) {
Ok(string) => Self::from_string(string.as_str()),
Err(_) => Err(Error::Decode),
Err(reason) => Err(Error::Decode(reason)),
},
None => Err(Error::Protocol),
}