reword error message about GRAPEVINE_CONFIG

The new message more accurately reflects the purpose and behaviors of
the environment variable.
This commit is contained in:
Charles Hall 2024-04-19 14:31:24 -07:00
parent 23f99015df
commit 4407e15d78
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -105,8 +105,9 @@ async fn try_main() -> Result<(), Box<dyn std::error::Error>> {
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(),
)