Don't fail on not being able to show image

This commit was merged in pull request #31.
This commit is contained in:
2024-10-20 19:45:31 +02:00
parent 91ab1ad771
commit c15feac958

View File

@@ -66,7 +66,9 @@ async fn main() -> anyhow::Result<()> {
})
.await?;
show_grzegorz_image(mpv.clone()).await?;
if let Err(e) = show_grzegorz_image(mpv.clone()).await {
log::warn!("Could not show Grzegorz image: {}", e);
}
let addr = SocketAddr::new(resolve(&args.host).await?, args.port);
log::info!("Starting API on {}", addr);