diff options
Diffstat (limited to 'sources/scala/tools/scalai/Interpreter.java')
-rw-r--r-- | sources/scala/tools/scalai/Interpreter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scala/tools/scalai/Interpreter.java b/sources/scala/tools/scalai/Interpreter.java index 7e5ec5446d..40aa1efa81 100644 --- a/sources/scala/tools/scalai/Interpreter.java +++ b/sources/scala/tools/scalai/Interpreter.java @@ -63,7 +63,7 @@ public class Interpreter { public EvaluatorResult interpret(String input, boolean interactive) { if (input.trim().length() == 0) return EvaluatorResult.Void; - global.compile(input + ";", interactive); + global.compile("<console>", input + ";", interactive); return interpret(interactive); } @@ -183,7 +183,7 @@ public class Interpreter { // Private Methods - Signaling errors private void error(String message) { - global.reporter.error("error: " + message); + global.reporter.error(null, message); } //######################################################################## |