Merge pull request #1008 from joakim-hove/remove-invalid-keyword
Will not attempt to internalize invalid keywords
This commit is contained in:
@@ -852,10 +852,7 @@ bool parseState( ParserState& parserState, const Parser& parser ) {
|
||||
throw std::invalid_argument(msg);
|
||||
}
|
||||
} else {
|
||||
DeckKeyword deckKeyword( rawKeyword->getKeywordName() );
|
||||
const std::string msg = "The keyword " + rawKeyword->getKeywordName() + " is not recognized";
|
||||
deckKeyword.setLocation( rawKeyword->getLocation() );
|
||||
parserState.deck.addKeyword( std::move( deckKeyword ) );
|
||||
const std::string msg = "The keyword " + rawKeyword->getKeywordName() + " is not recognized - ignored";
|
||||
OpmLog::warning(Log::fileMessage(parserState.current_path().string(), parserState.line(), msg));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user