Downgrade presentation error! to warn! in iced_winit

This commit is contained in:
Héctor Ramón Jiménez 2025-03-19 19:23:35 +01:00
parent 892ac1ce72
commit 9c1edc3d78
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F

View file

@ -900,14 +900,13 @@ async fn run_instance<P, C>(
Err(error) => match error {
// This is an unrecoverable error.
compositor::SurfaceError::OutOfMemory => {
panic!("{:?}", error);
panic!("{error}");
}
_ => {
debug.render_finished();
log::error!(
"Error {error:?} when \
presenting surface."
log::warn!(
"Error {error:?} when presenting surface."
);
// Try rendering all windows again next frame.