enshort common error name

This commit is contained in:
yggverse 2024-11-30 04:05:31 +02:00
parent 809e54b887
commit a06e4e9eff
16 changed files with 49 additions and 49 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(reason) => Err(Error::Decode(reason)),
Err(e) => Err(Error::Decode(e)),
},
None => Err(Error::Protocol),
}