diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-04-07 16:43:18 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-04-12 11:58:30 +0200 |
commit | 2d2d8e70911de15c8c82c06b7cdaff1d33e9992e (patch) | |
tree | 954232b353d508a0dcf785d4c97745fb5450cdd9 | |
parent | 37adb26ef191f5897aa77b59f2efe9474b7d2e56 (diff) | |
download | manaserv-2d2d8e70911de15c8c82c06b7cdaff1d33e9992e.tar.gz manaserv-2d2d8e70911de15c8c82c06b7cdaff1d33e9992e.tar.bz2 manaserv-2d2d8e70911de15c8c82c06b7cdaff1d33e9992e.tar.xz manaserv-2d2d8e70911de15c8c82c06b7cdaff1d33e9992e.zip |
Fixed Configuration::initialize() to return false when failing loading
Reviewed-by: Bertram.
-rw-r--r-- | src/common/configuration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/configuration.cpp b/src/common/configuration.cpp index 2be6768c..460db37b 100644 --- a/src/common/configuration.cpp +++ b/src/common/configuration.cpp @@ -91,11 +91,11 @@ bool Configuration::initialize(const std::string &fileName) else configPath = fileName; - readFile(configPath); + const bool success = readFile(configPath); LOG_INFO("Using config file: " << configPath); - return true; + return success; } void Configuration::deinitialize() |