From 106690c48dadae2e270d15c863dd8b17a00fa49c Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 29 Apr 2024 19:25:13 +0200 Subject: Correct nonsensical error message --- gitolfs3-authenticate/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gitolfs3-authenticate') 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 { impl Config { fn load() -> Result { let Ok(href_base) = std::env::var("GITOLFS3_HREF_BASE") else { - bail!("configured base URL not provided"); + bail!("invalid configuration: base URL not provided"); }; if !href_base.ends_with('/') { - bail!("configured base URL does not end with a slash"); + bail!("invalid configuration: base URL does not end with a slash"); } let Ok(key_path) = std::env::var("GITOLFS3_KEY_PATH") else { - bail!("key path not provided"); + bail!("invalid configuration: key path not provided"); }; let key = load_key(&key_path).map_err(|e| anyhow!("failed to load key: {e}"))?; -- cgit v1.2.3