aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-04-29 19:25:13 +0200
committerLibravatar Rutger Broekhoff2024-04-29 19:25:13 +0200
commit106690c48dadae2e270d15c863dd8b17a00fa49c (patch)
tree8ee584d04ea9f18ba9aaa0969d03a3f4e6e5ee3c
parenta7f9c8de31231b9fd9c67c57db659f7b01f1a3b0 (diff)
downloadgitolfs3-106690c48dadae2e270d15c863dd8b17a00fa49c.tar.gz
gitolfs3-106690c48dadae2e270d15c863dd8b17a00fa49c.zip
Correct nonsensical error message
-rw-r--r--gitolfs3-authenticate/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitolfs3-authenticate/src/main.rs b/gitolfs3-authenticate/src/main.rs
index 771f185..027c01b 100644
--- a/gitolfs3-authenticate/src/main.rs
+++ b/gitolfs3-authenticate/src/main.rs
@@ -64,14 +64,14 @@ struct Config {
64impl Config { 64impl Config {
65 fn load() -> Result<Self> { 65 fn load() -> Result<Self> {
66 let Ok(href_base) = std::env::var("GITOLFS3_HREF_BASE") else { 66 let Ok(href_base) = std::env::var("GITOLFS3_HREF_BASE") else {
67 bail!("configured base URL not provided"); 67 bail!("invalid configuration: base URL not provided");
68 }; 68 };
69 if !href_base.ends_with('/') { 69 if !href_base.ends_with('/') {
70 bail!("configured base URL does not end with a slash"); 70 bail!("invalid configuration: base URL does not end with a slash");
71 } 71 }
72 72
73 let Ok(key_path) = std::env::var("GITOLFS3_KEY_PATH") else { 73 let Ok(key_path) = std::env::var("GITOLFS3_KEY_PATH") else {
74 bail!("key path not provided"); 74 bail!("invalid configuration: key path not provided");
75 }; 75 };
76 let key = load_key(&key_path).map_err(|e| anyhow!("failed to load key: {e}"))?; 76 let key = load_key(&key_path).map_err(|e| anyhow!("failed to load key: {e}"))?;
77 77