diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileSocket.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala index f9feaea80e..18b64fdf2b 100644 --- a/src/compiler/scala/tools/nsc/CompileSocket.scala +++ b/src/compiler/scala/tools/nsc/CompileSocket.scala @@ -105,11 +105,11 @@ object CompileSocket { val cmd = serverCommand(vmArgs) info("[Executed command: " + cmd + "]") try { - val proc = Runtime.getRuntime().exec(cmd) - val exitVal = proc.waitFor() - info("[Exit value: " + exitVal + "]") + Runtime.getRuntime().exec(cmd) +// val exitVal = proc.waitFor() +// info("[Exit value: " + exitVal + "]") } catch { - case ex: Throwable => + case ex: IOException => fatal("cannot start server." + "\ntried command: " + cmd) } @@ -127,7 +127,7 @@ object CompileSocket { for (val i <- 1 until hits.length) hits(i).delete() Integer.parseInt(hits(0).getName) } catch { - case ex: Throwable => + case ex: NumberFormatException => fatal(ex.toString() + "\nbad file in temp directory: " + hits(0).getAbsolutePath() + |