From b997fa0f9f674f4d0abf9a8e38362e20a17ca2f0 Mon Sep 17 00:00:00 2001 From: gnembon Date: Sat, 21 Nov 2020 21:36:47 -0400 Subject: [PATCH] using `... todo`, or `... wip` and not implemented errors. --- src/main/java/carpet/script/language/Functions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/carpet/script/language/Functions.java b/src/main/java/carpet/script/language/Functions.java index 12bca880..e45d6a21 100644 --- a/src/main/java/carpet/script/language/Functions.java +++ b/src/main/java/carpet/script/language/Functions.java @@ -85,14 +85,14 @@ public class Functions { expression.addLazyFunction("outer", 1, (c, t, lv) -> { if (t != Context.LOCALIZATION) - throw new InternalExpressionException("Outer scoping of variables is only possible in function signatures"); + throw new InternalExpressionException("Outer scoping of variables is only possible in function signatures."); return (cc, tt) -> new FunctionAnnotationValue(lv.get(0).evalValue(c), 0); }); expression.addLazyUnaryOperator("...", Operators.precedence.get("def->..."), false, (c, t, lv) -> { if (t != Context.LOCALIZATION) - throw new InternalExpressionException("Outer scoping of variables is only possible in function signatures"); + throw new InternalExpressionException("That functionality has not been implemented yet."); return (cc, tt) -> new FunctionAnnotationValue(lv.evalValue(c), 1); });