mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Change err mess for config
This commit is contained in:
parent
cd3748d412
commit
bc2a161f62
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ impl Opt {
|
||||||
// Return an error if config file contains 'config_file_path'
|
// Return an error if config file contains 'config_file_path'
|
||||||
// Using that key in the config file doesn't make sense bc it creates a logical loop (config file referencing itself)
|
// Using that key in the config file doesn't make sense bc it creates a logical loop (config file referencing itself)
|
||||||
if opt_from_config.config_file_path.is_some() {
|
if opt_from_config.config_file_path.is_some() {
|
||||||
anyhow::bail!("`config_file_path` is not supported in config file")
|
anyhow::bail!("`config_file_path` is not supported in the configuration file")
|
||||||
}
|
}
|
||||||
// We inject the values from the toml in the corresponding env vars if needs be. Doing so, we respect the priority toml < env vars < cli args.
|
// We inject the values from the toml in the corresponding env vars if needs be. Doing so, we respect the priority toml < env vars < cli args.
|
||||||
opt_from_config.export_to_env();
|
opt_from_config.export_to_env();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue