[muscript] Adjust Get.get exception
This commit is contained in:
parent
16e3a3224d
commit
47c30f499b
@ -23,6 +23,6 @@ public class Get extends Expr.ObjectExpr {
|
|||||||
} else if (left instanceof OList l) {
|
} else if (left instanceof OList l) {
|
||||||
return l.get(name.asNumberExpr().get(dataRoot, dataRoot).intValue());
|
return l.get(name.asNumberExpr().get(dataRoot, dataRoot).intValue());
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException("Name is not of a valid type");
|
throw new IllegalArgumentException("The element to get value \"" + name.asStringExpr().get(dataRoot, dataRoot) + "\" from is not of a valid type");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user