diff options
| author | Rutger Broekhoff | 2024-04-29 19:25:13 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2024-04-29 19:25:13 +0200 |
| commit | 106690c48dadae2e270d15c863dd8b17a00fa49c (patch) | |
| tree | 8ee584d04ea9f18ba9aaa0969d03a3f4e6e5ee3c | |
| parent | a7f9c8de31231b9fd9c67c57db659f7b01f1a3b0 (diff) | |
| download | gitolfs3-106690c48dadae2e270d15c863dd8b17a00fa49c.tar.gz gitolfs3-106690c48dadae2e270d15c863dd8b17a00fa49c.zip | |
Correct nonsensical error message
| -rw-r--r-- | gitolfs3-authenticate/src/main.rs | 6 |
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 { | |||
| 64 | impl Config { | 64 | impl 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 | ||