diff options
author | Teddy Wing | 2021-06-13 19:58:23 +0200 |
---|---|---|
committer | Teddy Wing | 2021-06-13 19:58:23 +0200 |
commit | 7a9173a5c02248ac61ed657d9ae73b5b3076d154 (patch) | |
tree | 13a4a2f39512849f82d4e6886d1cc198c1383a5b | |
parent | 0ba3d6e1f6e09c53d938ec03b30be60fee816924 (diff) | |
download | reflectub-7a9173a5c02248ac61ed657d9ae73b5b3076d154.tar.bz2 |
main: Add context to GitHub fetch error
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 92db74f..52820a8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,7 +110,7 @@ fn run() -> Result<(), MultiError> { .map(|s| PathBuf::from(s)); let repos = github::fetch_repos(username) - .map_err(anyhow::Error::new)?; + .context("unable to fetch GitHub repositories")?; let db = database::Db::connect(&database_file) .context("unable to connect to database")?; |