Merge pull request #2065 from joakim-hove/meta-error-message
Improve error message for unhandled meta summary keyword
This commit is contained in:
commit
8d3e419162
@ -1217,8 +1217,12 @@ SummaryConfig::SummaryConfig( const Deck& deck,
|
||||
if (section.hasKeyword(meta_pair.first)) {
|
||||
const auto& deck_keyword = section.getKeyword(meta_pair.first);
|
||||
for (const auto& kw : meta_pair.second) {
|
||||
if (!this->hasKeyword(kw))
|
||||
handleKW(this->m_keywords, kw, deck_keyword.location(), schedule, aquiferConfig, parseContext, errors);
|
||||
if (!this->hasKeyword(kw)) {
|
||||
KeywordLocation location = deck_keyword.location();
|
||||
location.keyword = fmt::format("{}/{}", meta_pair.first, kw);
|
||||
|
||||
handleKW(this->m_keywords, kw, location, schedule, aquiferConfig, parseContext, errors);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user