+ 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 c94403412d
commit 721cb21b42
2 changed files with 7 additions and 3 deletions

View File

@@ -1090,9 +1090,13 @@ int ParameterManager::LoadDocument(const char* sFileName)
#endif
return LoadDocument(inputSource);
}
catch (const Base::Exception& e) {
std::cerr << e.what() << std::endl;
throw;
}
catch (...) {
std::cerr << "An error occurred during parsing\n " << std::endl;
return 0;
throw;
}
}