Skip to content
Snippets Groups Projects
Commit 187536ee authored by Christoph Kampmeyer's avatar Christoph Kampmeyer
Browse files

ConfigReader: Add lines to check exception messages

Manual check to be used temporarily.
parent 031c1aab
No related branches found
No related tags found
No related merge requests found
......@@ -280,6 +280,12 @@ BOOST_AUTO_TEST_CASE(testExceptions) {
// Test getting nonexisting varibale
BOOST_CHECK_THROW(app.config.get<int>("nonexistentVariable"), ctk::logic_error);
try {
app.config.get<int>("nonexistentVariable");
} catch (ctk::logic_error &e) {
std::cout << "Using get with incorrect type. Exception message: " << e.what() << std::endl;
}
}
}
......
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