From 9b5611af3ffa4c37d755109ba3d94db0690f1718 Mon Sep 17 00:00:00 2001 From: Patrick Ziegler Date: Sun, 31 Oct 2021 11:53:23 +0100 Subject: [PATCH] Fix message for deprecated config name (#2548) --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 014011b1..ee94f1ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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"); }