+ do not abort if user.cfg or system.cfg is empty

This commit is contained in:
wmayer
2014-08-31 16:10:45 +02:00
parent ce528d1c4a
commit f2319de49d
2 changed files with 7 additions and 3 deletions

View File

@@ -1372,7 +1372,7 @@ void Application::LoadParameters(void)
catch (const Base::Exception& e) {
// try to proceed with an empty XML document
Base::Console().Error("%s in file %s.\n"
"Continue with an empty configuration.",
"Continue with an empty configuration.\n",
e.what(), mConfig["SystemParameter"].c_str());
_pcSysParamMngr->CreateDocument();
}
@@ -1391,7 +1391,7 @@ void Application::LoadParameters(void)
catch (const Base::Exception& e) {
// try to proceed with an empty XML document
Base::Console().Error("%s in file %s.\n"
"Continue with an empty configuration.",
"Continue with an empty configuration.\n",
e.what(), mConfig["UserParameter"].c_str());
_pcUserParamMngr->CreateDocument();
}