Added an else clause that throws, should check before getting

This commit is contained in:
Kristian Flikka
2013-08-27 10:06:55 +02:00
parent 1fc3857d06
commit 57ca1d0eb6

View File

@@ -61,6 +61,8 @@ namespace Opm {
if (hasKeyword(keyword)) {
return m_parserKeywords.at(keyword);
}
else
throw std::invalid_argument("Keyword: " + keyword + " does not exist");
}
void Parser::parseFile(DeckPtr deck, const std::string &file, bool parseStrict) const {