summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-07-22 17:06:36 +0000
committerLex Spoon <lex@lexspoon.org>2007-07-22 17:06:36 +0000
commit1fd4a4b280555298c94f703982a8084eaf237029 (patch)
tree9fd1c18754298743f98a137df3498d945985873a /src
parentd5d4f71448c03b3179c56a841433f1f5e4a40a03 (diff)
downloadscala-1fd4a4b280555298c94f703982a8084eaf237029.tar.gz
scala-1fd4a4b280555298c94f703982a8084eaf237029.tar.bz2
scala-1fd4a4b280555298c94f703982a8084eaf237029.zip
- handle empty-string arguments
- properly handle errors that happen while parsing the argument list
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/CompileServer.scala6
1 files changed, 3 insertions, 3 deletions
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)