Skip to content
Snippets Groups Projects
Commit 056ba66e authored by Naumann, Andreas's avatar Naumann, Andreas
Browse files

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

parent e14c659f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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