Commit 056ba66e authored by Naumann, Andreas's avatar Naumann, Andreas

Initfile throws error with break on missing tag and debuglevel greater than 2

parent e14c659f
......@@ -444,20 +444,18 @@ namespace AMDiS {
valStr = trim(valStr);
detail::convert(valStr, value);
}
} catch(mu::ParserError& e) {
std::string parser_error = "Could not parse: " + tag;
throw std::runtime_error(parser_error);
}
/*
else if(error_code == TAG_NOT_FOUND_BREAK)
else if(error_code == TAG_NOT_FOUND_BREAK)
throw TagNotFoundBreak("required tag '" + tag + "' not found");
else if (error_code == TAG_NOT_FOUND) {
if (debugInfo == 2)
std::cout << "there is no tag '" + tag + "'" << std::endl;
} else
throw std::runtime_error("unknown error_code (" + boost::lexical_cast<std::string>(error_code) + ") returned for tag '" + tag + "'");
*/
} catch(mu::ParserError& e) {
std::string parser_error = "Could not parse: " + tag;
throw std::runtime_error(parser_error);
}
if (debugInfo == 2) {
std::cout << "Parameter '" << tag << "'"
<< " initialized with: " << value << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment