aboutsummaryrefslogtreecommitdiffstats
path: root/gitolfs3-authenticate/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gitolfs3-authenticate/src/main.rs')
-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