mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
update memory input stream errors api
This commit is contained in:
parent
88a37c545b
commit
2ed2f9fef7
@ -645,17 +645,11 @@ impl Page {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
Err((error, reason)) => {
|
Err(reason) => {
|
||||||
// Define common data
|
// Define common data
|
||||||
let status = Status::Failure;
|
let status = Status::Failure;
|
||||||
let title = "Oops";
|
let title = "Oops";
|
||||||
let description = match reason {
|
let description = reason.to_string();
|
||||||
Some(message) => gformat!("{message}"),
|
|
||||||
None => match error {
|
|
||||||
gemini::gio::memory_input_stream::Error::BytesTotal => gformat!("Allowed size reached"),
|
|
||||||
gemini::gio::memory_input_stream::Error::InputStream => gformat!("Input stream error"),
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
// Update widget
|
// Update widget
|
||||||
content
|
content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user