From ed4851068cee1a69d62abf18fbce5551129a8df5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 28 Oct 2024 02:53:56 +0200 Subject: [PATCH] handle buffer errors --- src/app/browser/window/tab/item/page.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index 6230eec9..2220fd1e 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -508,14 +508,12 @@ impl Page { let status = Status::Failure; let title = gformat!("Oops"); let description = match reason { - BodyError::InputStream => match message { + BodyError::InputStreamRead => match message { Some(error) => gformat!("{error}"), None => gformat!("Undefined connection error") } , - BodyError::Overflow => gformat!("Buffer overflow"), - BodyError::Buffer => todo!(), - BodyError::Decode => todo!(), - BodyError::Format => todo!(), + BodyError::BufferOverflow => gformat!("Buffer overflow"), + BodyError::Decode => gformat!("Buffer decode error"), }; // Update widget