mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
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:
parent
23f99015df
commit
4407e15d78
1 changed files with 3 additions and 2 deletions
|
|
@ -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(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue