From 4407e15d787c722a432c3a8b4af49cb06b48c80e Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Fri, 19 Apr 2024 14:31:24 -0700 Subject: [PATCH] reword error message about `GRAPEVINE_CONFIG` The new message more accurately reflects the purpose and behaviors of the environment variable. --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9c507f49..c8abc651 100644 --- a/src/main.rs +++ b/src/main.rs @@ -105,8 +105,9 @@ async fn try_main() -> Result<(), Box> { let raw_config = Figment::new() .merge( Toml::file(Env::var("GRAPEVINE_CONFIG").ok_or( - "The GRAPEVINE_CONFIG env var needs to be set. Example: \ - /etc/grapevine.toml", + "the `GRAPEVINE_CONFIG` environment variable must either be \ + set to a configuration file path or set to the empty string \ + to force configuration through environment variables", )?) .nested(), )