From cd579b986641ed15687dfb5d665f2e67f656f7af Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 7 Feb 2011 11:41:22 +0000 Subject: Towards better error handling in the IDE. --- src/compiler/scala/tools/nsc/Main.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/scala/tools/nsc/Main.scala') diff --git a/src/compiler/scala/tools/nsc/Main.scala b/src/compiler/scala/tools/nsc/Main.scala index eee5807df1..ff197a125c 100644 --- a/src/compiler/scala/tools/nsc/Main.scala +++ b/src/compiler/scala/tools/nsc/Main.scala @@ -34,7 +34,7 @@ object Main extends AnyRef with EvalLoop { loop { line => val args = line.split(' ').toList val command = new CompilerCommand(args, new Settings(scalacError)) - compiler.reporter.reset + compiler.reporter.reset() new compiler.Run() compile command.files } } @@ -59,7 +59,7 @@ object Main extends AnyRef with EvalLoop { reloaded.get.right.toOption match { case Some(ex) => reporter.cancelled = true // Causes exit code to be non-0 - case None => reporter.reset // Causes other compiler errors to be ignored + case None => reporter.reset() // Causes other compiler errors to be ignored } askShutdown } -- cgit v1.2.3