mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
in case of null argument it is more intuitive to report the argument index by counting from 1.
This commit is contained in:
@@ -40,7 +40,7 @@ public class Expr implements Serializable {
|
||||
throw new IllegalArgumentException("fun == null");
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
if (args[i] == null)
|
||||
throw new IllegalArgumentException("the "+i+"th argument is null");
|
||||
throw new IllegalArgumentException("the "+(i+1)+"th argument is null");
|
||||
}
|
||||
|
||||
this.pool = new Pool();
|
||||
|
||||
Reference in New Issue
Block a user