mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 01:25:32 +00:00
update memory input stream errors handler
This commit is contained in:
parent
3a9e84a3d9
commit
239786da6a
6 changed files with 27 additions and 12 deletions
|
|
@ -3,7 +3,7 @@ use std::fmt::{Display, Formatter, Result};
|
|||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Data(super::data::Error),
|
||||
InputStreamRead(Vec<u8>, glib::Error),
|
||||
InputStream(Vec<u8>, glib::Error),
|
||||
Mime(super::mime::Error),
|
||||
Protocol,
|
||||
Status(super::status::Error),
|
||||
|
|
@ -15,7 +15,7 @@ impl Display for Error {
|
|||
Self::Data(reason) => {
|
||||
write!(f, "Data error: {reason}")
|
||||
}
|
||||
Self::InputStreamRead(_, reason) => {
|
||||
Self::InputStream(_, reason) => {
|
||||
// @TODO
|
||||
write!(f, "Input stream error: {reason}")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue