diff --git a/src/main.rs b/src/main.rs index 20d3204..9935fd6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,7 +79,7 @@ async fn main() -> anyhow::Result<()> { node = id_clone.as_str() ); - shotter::take_one_screenshot( + match shotter::take_one_screenshot( &node_clone.url, &node_clone.origin, &id_clone, @@ -87,7 +87,15 @@ async fn main() -> anyhow::Result<()> { config.webp_quality, ) .instrument(span) - .await?; + .await + { + Ok(_) => {} + + Err(error) => { + // FIXME: On WebSocket errors, should we just try again? + tracing::error!("Error taking screenshot: {error}"); + } + }; } Ok(())