make the build fail if a JSON keyword definition file could not be parsed

This commit is contained in:
Andreas Lauser
2014-12-15 17:19:32 +01:00
parent b8a5280428
commit cf7e293635
@@ -215,9 +215,10 @@ static void scanKeyword(const boost::filesystem::path& file , KeywordMapType& ke
Json::JsonObject * jsonKeyword;
try {
jsonKeyword = new Json::JsonObject(file);
} catch(...) {
std::cerr << "Parsing json config file: " << file.string() << " failed - keyword skipped." << std::endl;
return;
} catch(const std::exception& e) {
std::cerr << "Parsing JSON keyword definition from file '" << file.string() << "' failed: "
<< e.what() << "\n";
std::exit(1);
}
{