mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10: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
|
||||
let status = Status::Failure;
|
||||
let title = "Oops";
|
||||
let description = match reason {
|
||||
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"),
|
||||
},
|
||||
};
|
||||
let description = reason.to_string();
|
||||
|
||||
// Update widget
|
||||
content
|
||||
|
Loading…
x
Reference in New Issue
Block a user