Skip to content

Commit

Permalink
Update assign(NotAnIvar, ...) error message (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter12345 authored and LadyCailin committed May 31, 2019
1 parent 1a11de2 commit c66c726
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -289,7 +289,7 @@ public Mixed exec(Target t, Environment env, Mixed... args) throws CancelCommand
} else {
offset = 0;
if(!(args[offset] instanceof IVariable)) {
throw new CRECastException(getName() + " with 2 arguments only accepts an ivariable as the second argument.", t);
throw new CRECastException(getName() + " with 2 arguments only accepts an ivariable as the first argument.", t);
}
name = ((IVariable) args[offset]).getVariableName();
type = list.get(name, t, true, env).getDefinedType();
Expand Down

0 comments on commit c66c726

Please sign in to comment.