make the build fail if a JSON keyword definition file could not be parsed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user