diff --git a/AMDiS/src/Initfile.h b/AMDiS/src/Initfile.h index 4692378060e3630e949021da49a6782e0f1c465a..57e406f672e03ce8db957d33955e7d4f723bc90d 100644 --- a/AMDiS/src/Initfile.h +++ b/AMDiS/src/Initfile.h @@ -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;