diff --git a/src/main.rs b/src/main.rs index 39be64d..f0ecf93 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,17 +50,18 @@ async fn main() -> Result<(), MainError> { .trim_start_matches("demos/"), ); - if !path.exists() { - error!(path = ?path, "Demo not found"); - break; - } - info!("removing"); client .set_url(demo.id, "deleted", "", "", demo.hash, &api_key) .await?; - remove_file(&path)?; - info!("{} {}", demo.id, demo.name); + + + if !path.exists() { + error!(path = ?path, "File not found"); + } else { + remove_file(&path)?; + info!(name = demo.name, "removed"); + } } Ok(())