Allowing empty and expressions for compatibility and added a warning if used.
This commit is contained in:
parent
bbb6379907
commit
04aac10f1d
@ -41,7 +41,7 @@ AndPointer And::parse(Context &context, ExpressionContext &expressionContext,
|
||||
expression->NAry::parse(context, expressionContext, parseExpression);
|
||||
|
||||
if (expression->arguments().empty())
|
||||
throw ConsistencyException("\"and\" expressions should not be empty");
|
||||
context.logger.parserWarning(context.parser, "\"and\" expressions should not be empty");
|
||||
|
||||
return expression;
|
||||
}
|
||||
|
Reference in New Issue
Block a user