mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41: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()
|
let raw_config = Figment::new()
|
||||||
.merge(
|
.merge(
|
||||||
Toml::file(Env::var("GRAPEVINE_CONFIG").ok_or(
|
Toml::file(Env::var("GRAPEVINE_CONFIG").ok_or(
|
||||||
"The GRAPEVINE_CONFIG env var needs to be set. Example: \
|
"the `GRAPEVINE_CONFIG` environment variable must either be \
|
||||||
/etc/grapevine.toml",
|
set to a configuration file path or set to the empty string \
|
||||||
|
to force configuration through environment variables",
|
||||||
)?)
|
)?)
|
||||||
.nested(),
|
.nested(),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue