summaryrefslogtreecommitdiff
path: root/src/configmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-06 22:55:19 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-06 22:55:19 +0300
commitba21ad5b52d75c98d15a547a64d246e576c1afc2 (patch)
treefc32afddaf47c8d014ffd61259509b29bb04ce05 /src/configmanager.cpp
parent65d1cadca2ad2d30019f8dd869485c29560b59b7 (diff)
downloadmv-ba21ad5b52d75c98d15a547a64d246e576c1afc2.tar.gz
mv-ba21ad5b52d75c98d15a547a64d246e576c1afc2.tar.bz2
mv-ba21ad5b52d75c98d15a547a64d246e576c1afc2.tar.xz
mv-ba21ad5b52d75c98d15a547a64d246e576c1afc2.zip
Show asserts if any errors happened with fopen.
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