Fix message for deprecated config name (#2548)
This commit is contained in:
parent
3c5b2b61a6
commit
9b5611af3f
@ -109,13 +109,12 @@ int main(int argc, char** argv) {
|
||||
} else {
|
||||
confpath = file_util::get_config_path();
|
||||
|
||||
if (string_util::ends_with(confpath, "config")) {
|
||||
if (string_util::ends_with(confpath, "/config")) {
|
||||
logger::make().warn(
|
||||
"Naming your config file 'config' is deprecated when using the --config flag, the expected name is "
|
||||
"'config.ini'.",
|
||||
confpath);
|
||||
"Naming your configuration file 'config' is deprecated, the expected name is 'config.ini'.");
|
||||
}
|
||||
}
|
||||
|
||||
if (confpath.empty()) {
|
||||
throw application_error("Define configuration using --config=PATH");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user