handle Text::from_stream_async errors

This commit is contained in:
yggverse 2025-01-18 13:03:11 +02:00
parent b6e1ae4e6a
commit 64d7165774

View File

@ -94,7 +94,11 @@ fn handle(
_ => 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" => {