diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-06 22:55:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-06 22:55:19 +0300 |
commit | ba21ad5b52d75c98d15a547a64d246e576c1afc2 (patch) | |
tree | fc32afddaf47c8d014ffd61259509b29bb04ce05 /src/configuration.cpp | |
parent | 65d1cadca2ad2d30019f8dd869485c29560b59b7 (diff) | |
download | mv-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/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index 0778d2101..f78bd4e50 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -29,6 +29,7 @@ #include "listeners/configlistener.h" +#include "utils/checkutils.h" #include "utils/delete2.h" #ifdef DEBUG_CONFIG #include "utils/stringmap.h" @@ -859,8 +860,8 @@ void Configuration::write() FILE *const testFile = fopen(mConfigPath.c_str(), "w"); if (!testFile) { - logger->log("Configuration::write() couldn't open %s for writing", - mConfigPath.c_str()); + reportAlways("Configuration::write() couldn't open %s for writing", + mConfigPath.c_str()); BLOCK_END("Configuration::write") return; } |