Add operation name to error.
This commit is contained in:
parent
8611f664cb
commit
a4576d253d
@ -311,7 +311,7 @@ Fieldprops::ScalarOperation fromString(const std::string& keyword) {
|
|||||||
if (keyword == ParserKeywords::MAXVALUE::keywordName)
|
if (keyword == ParserKeywords::MAXVALUE::keywordName)
|
||||||
return Fieldprops::ScalarOperation::MAX;
|
return Fieldprops::ScalarOperation::MAX;
|
||||||
|
|
||||||
throw std::invalid_argument("Keyword operation not recognized");
|
throw std::invalid_argument(fmt::format("Keyword operation ({}) not recognized", keyword));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user