Skip to content

Commit

Permalink
main: skip errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Oct 27, 2024
1 parent 524a8f7 commit afb59aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ fn main() -> Result<()> {
let list: Vec<String> = 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(())
Expand Down

0 comments on commit afb59aa

Please sign in to comment.