[muscript] Adjust Get.get exception

This commit is contained in:
Johannes Frohnmeyer 2022-06-04 18:16:53 +02:00
parent 16e3a3224d
commit 47c30f499b
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 1 deletions

View File

@ -23,6 +23,6 @@ public class Get extends Expr.ObjectExpr {
} else if (left instanceof OList l) {
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");
}
}