From 1fd4a4b280555298c94f703982a8084eaf237029 Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Sun, 22 Jul 2007 17:06:36 +0000 Subject: - handle empty-string arguments - properly handle errors that happen while parsing the argument list --- src/compiler/scala/tools/nsc/CompileServer.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/CompileServer.scala b/src/compiler/scala/tools/nsc/CompileServer.scala index 3fcdd5d991..4ad9f247aa 100644 --- a/src/compiler/scala/tools/nsc/CompileServer.scala +++ b/src/compiler/scala/tools/nsc/CompileServer.scala @@ -98,7 +98,7 @@ class StandardCompileServer extends SocketServer { try { inSession = true progress = true - val args = input.split("\0").toList + val args = input.split("\0",-1).toList if (args contains "-shutdown") { out.println("[Compile server exited]") shutDown = true @@ -110,8 +110,8 @@ class StandardCompileServer extends SocketServer { return } def error(msg: String) { - reporter.error(/*new Position*/ FakePos("fsc"), - msg + "\n fsc -help gives more information") + out.println(/*new Position*/ FakePos("fsc"), + msg + "\n fsc -help gives more information") } val command = newOfflineCompilerCommand(args, new Settings(error), error, false) -- cgit v1.2.3