Fix message for deprecated config name (#2548)

This commit is contained in:
Patrick Ziegler 2021-10-31 11:53:23 +01:00 committed by GitHub
parent 3c5b2b61a6
commit 9b5611af3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,13 +109,12 @@ int main(int argc, char** argv) {
} else { } else {
confpath = file_util::get_config_path(); confpath = file_util::get_config_path();
if (string_util::ends_with(confpath, "config")) { if (string_util::ends_with(confpath, "/config")) {
logger::make().warn( logger::make().warn(
"Naming your config file 'config' is deprecated when using the --config flag, the expected name is " "Naming your configuration file 'config' is deprecated, the expected name is 'config.ini'.");
"'config.ini'.",
confpath);
} }
} }
if (confpath.empty()) { if (confpath.empty()) {
throw application_error("Define configuration using --config=PATH"); throw application_error("Define configuration using --config=PATH");
} }