Skip to content

Commit

Permalink
handle case where github is down
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Aug 14, 2024
1 parent 8c9d52d commit 45506dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/boot_fake_node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ pub async fn get_from_github(owner: &str, repo: &str, endpoint: &str) -> Result<
}
}
}
if s.contains("No server is currently available to service your request.") {
warn!("Couldn't reach GitHub");
return Ok(vec![]);
}
}
fs::create_dir_all(
cache_path
Expand Down

0 comments on commit 45506dc

Please sign in to comment.