summaryrefslogtreecommitdiff
path: root/src/configmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r--src/configmanager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index bd19d7307..e79753a66 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -34,6 +34,7 @@
#include "fs/mkdir.h"
#include "fs/paths.h"
+#include "utils/checkutils.h"
#include "utils/gettext.h"
#include "render/renderers.h"
@@ -76,6 +77,11 @@ void ConfigManager::initServerConfig(const std::string &serverName)
serverConfig.setDefaultValues(getConfigDefaults());
logger->log("serverConfigPath: " + configPath);
}
+ else
+ {
+ reportAlways("Error creating server config: %s",
+ configPath.c_str());
+ }
const bool val = client->isTmw();
setDefaultOption("enableManaMarketBot", val);
@@ -135,7 +141,7 @@ void ConfigManager::initConfiguration()
}
if (!configFile)
{
- logger->log("Can't create %s. Using defaults.",
+ reportAlways("Can't create %s. Using defaults.",
configPath.c_str());
}
else