mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-30 02:13:18 -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:
1 parent
4996d5d90b
commit
1a0defc0fc
1 file changed
+1
-1
@@ -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