Skip to content
Snippets Groups Projects
Commit 846197d6 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

Merge branch 'master' of github.com:ChimeraTK/ApplicationCore

parents 0d6f2028 f72ac523
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,13 @@ namespace ChimeraTK {
instance = dynamic_cast<ConfigReader*>(mod);
}
if(nConfigReaders != 1) {
throw ChimeraTK::logic_error("ApplicationModule::appConfig() called but " + std::to_string(nConfigReaders) +
" instances of ChimeraTK::ConfigReader have been found.");
std::string message = "ApplicationModule::appConfig() called but " + std::to_string(nConfigReaders) +
" instances of ChimeraTK::ConfigReader have been found.";
// Printing the message as well; there is a situation when running under Boost::Test where this
// is caught by Boost and causes a weird destructor message from AppBase.cc instead with no means of
// finding out the actual error
std::cerr << message << std::endl;
throw ChimeraTK::logic_error(message);
}
return *instance;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment