patrick
/
plasp
Archived
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

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