File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
liquidjava-verifier/src/main/java/liquidjava/rj_language/visitors Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -165,11 +165,13 @@ private Expression functionCallCreate(FunctionCallContext rc) throws ParsingExce
165165 String name = Utils .qualifyName (prefix , gc .ID ().getText ());
166166 List <Expression > args = getArgs (gc .args ());
167167 if (args .isEmpty ())
168- throw new ParsingException ("Function call cannot have empty arguments" );
168+ throw new ParsingException ("Ghost call cannot have empty arguments" );
169169 return new FunctionInvocation (name , args );
170170 } else {
171171 AliasCallContext gc = rc .aliasCall ();
172172 List <Expression > args = getArgs (gc .args ());
173+ if (args .isEmpty ())
174+ throw new ParsingException ("Alias call cannot have empty arguments" );
173175 return new AliasInvocation (gc .ID_UPPER ().getText (), args );
174176 }
175177 }
You can’t perform that action at this time.
0 commit comments