ParseStringFilter: when failed to parse the operator, indicate the unknown operator in the error message
This commit is contained in:
parent
c39d8e5813
commit
d2382e8de9
|
@ -304,7 +304,7 @@ ParseStringFilter(const char *&s, bool fold_case)
|
|||
if (s[0] == '!' && s[1] == '=')
|
||||
negated = true;
|
||||
else if (s[0] != '=' || s[1] != '=')
|
||||
throw std::runtime_error("'==' or '!=' expected");
|
||||
throw FmtRuntimeError("Unknown filter operator: {}", s);
|
||||
|
||||
s = StripLeft(s + 2);
|
||||
auto value = ExpectQuoted(s);
|
||||
|
|
Loading…
Reference in New Issue