Browse code

b/f:conference: proper log if cfg file not found

Stefan Sayer authored on 11/11/2014 14:12:21
Showing 1 changed files
... ...
@@ -155,8 +155,11 @@ int get_audio_file(const string& message, const string& domain, const string& la
155 155
 
156 156
 int ConferenceFactory::onLoad()
157 157
 {
158
-  if(cfg.loadFile(AmConfig::ModConfigPath + string(APP_NAME)+ ".conf"))
158
+  if(cfg.loadFile(AmConfig::ModConfigPath + string(APP_NAME)+ ".conf")) {
159
+    ERROR("Configuration file '%s' missing.\n",
160
+	  (AmConfig::ModConfigPath + string(APP_NAME)+ ".conf").c_str());
159 161
     return -1;
162
+  }
160 163
 
161 164
   // get application specific global parameters
162 165
   configureModule(cfg);