From 2ed2f9fef720e2abb768da325b075fa8045425b3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 27 Nov 2024 15:38:26 +0200 Subject: [PATCH] update memory input stream errors api --- src/app/browser/window/tab/item/page.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index cc00a879..5f015f06 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -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