Allowing empty and expressions for compatibility and added a warning if used.

This commit is contained in:
Patrick Lühne 2016-06-09 15:56:14 +02:00
parent bbb6379907
commit 04aac10f1d

View File

@ -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;
}