From 1b18b98ca5d8059043db60b1c87053bfcd2cbc6f Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 15 Jan 2006 00:22:29 +0000 Subject: Update confusing warning. Check that config file location is writable. svn-id: r20034 --- common/config-manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/config-manager.cpp b/common/config-manager.cpp index 44152c38a1..5837334497 100644 --- a/common/config-manager.cpp +++ b/common/config-manager.cpp @@ -115,6 +115,7 @@ void ConfigManager::loadDefaultConfigFile() { #endif loadConfigFile(configFile); + flushToDisk(); } void ConfigManager::loadConfigFile(const String &filename) { @@ -135,7 +136,7 @@ void ConfigManager::loadFile(const String &filename) { File cfg_file; if (!cfg_file.open(filename.c_str())) { - warning("Unable to open configuration file: %s", filename.c_str()); + printf("Creating configuration file: %s\n", filename.c_str()); } else { char buf[MAXLINELEN]; String domain; @@ -228,7 +229,7 @@ void ConfigManager::flushToDisk() { // return; if (!(cfg_file = fopen(_filename.c_str(), "w"))) { - warning("Unable to write configuration file: %s", _filename.c_str()); + error("Unable to write configuration file: %s", _filename.c_str()); } else { // First write the domains in _domainSaveOrder, in that order. -- cgit v1.2.3