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

@ -84,8 +84,8 @@ pub fn read_all_from_stream_async(
(on_chunk, on_complete),
);
}
Err(reason) => {
on_complete(Err(Error::InputStream(reason)));
Err(e) => {
on_complete(Err(Error::InputStream(e)));
}
},
);

View file

@ -12,8 +12,8 @@ impl Display for Error {
Self::BytesTotal(total, limit) => {
write!(f, "Bytes total limit reached: {total} / {limit}")
}
Self::InputStream(reason) => {
write!(f, "Input stream error: {reason}")
Self::InputStream(e) => {
write!(f, "Input stream error: {e}")
}
}
}