From afb59aa5f246e7d1c87d4ed05d773db210d0b9a4 Mon Sep 17 00:00:00 2001 From: zjp Date: Sun, 27 Oct 2024 20:27:58 +0800 Subject: [PATCH] main: skip errors --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 624323d..0627dbf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,13 @@ fn main() -> Result<()> { let list: Vec = serde_json::from_slice(&std::fs::read(&list_json)?)?; for user_repo in &list { let _span = error_span!("list", user_repo).entered(); - repo::Repo::new(user_repo)?.output()?; + match repo::Repo::new(user_repo) { + Ok(val) => match val.output() { + Ok(_) => (), + Err(err) => error!(?err), + }, + Err(err) => error!(?err), + }; } Ok(())