mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
handle buffer errors
This commit is contained in:
parent
f8978adb2c
commit
ed4851068c
@ -508,14 +508,12 @@ impl Page {
|
|||||||
let status = Status::Failure;
|
let status = Status::Failure;
|
||||||
let title = gformat!("Oops");
|
let title = gformat!("Oops");
|
||||||
let description = match reason {
|
let description = match reason {
|
||||||
BodyError::InputStream => match message {
|
BodyError::InputStreamRead => match message {
|
||||||
Some(error) => gformat!("{error}"),
|
Some(error) => gformat!("{error}"),
|
||||||
None => gformat!("Undefined connection error")
|
None => gformat!("Undefined connection error")
|
||||||
} ,
|
} ,
|
||||||
BodyError::Overflow => gformat!("Buffer overflow"),
|
BodyError::BufferOverflow => gformat!("Buffer overflow"),
|
||||||
BodyError::Buffer => todo!(),
|
BodyError::Decode => gformat!("Buffer decode error"),
|
||||||
BodyError::Decode => todo!(),
|
|
||||||
BodyError::Format => todo!(),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Update widget
|
// Update widget
|
||||||
|
Loading…
x
Reference in New Issue
Block a user