mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
handle Text::from_stream_async errors
This commit is contained in:
parent
b6e1ae4e6a
commit
64d7165774
1 changed files with 5 additions and 1 deletions
|
|
@ -94,7 +94,11 @@ fn handle(
|
||||||
_ => false,
|
_ => false,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
Err(_) => todo!(),
|
Err(e) => callback(Response::Failure(Failure::Mime {
|
||||||
|
base,
|
||||||
|
mime: mime.to_string(),
|
||||||
|
message: e.to_string(),
|
||||||
|
})),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
"image/png" | "image/gif" | "image/jpeg" | "image/webp" => {
|
"image/png" | "image/gif" | "image/jpeg" | "image/webp" => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue