summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/CompileSocket.scala
diff options
context:
space:
mode:
authorAntoine Gourlay <antoine@gourlay.fr>2014-08-21 11:17:46 +0200
committerAntoine Gourlay <antoine@gourlay.fr>2014-08-25 11:32:08 +0200
commit6f54b1dfede5d9b375eab029ef682e1a61da9a70 (patch)
tree8552699030bee4d60dd9b7d4ee6905903e44c9b9 /src/compiler/scala/tools/nsc/CompileSocket.scala
parentd4b5c7b95de88d3890be654e06da812c6eb607f5 (diff)
downloadscala-6f54b1dfede5d9b375eab029ef682e1a61da9a70.tar.gz
scala-6f54b1dfede5d9b375eab029ef682e1a61da9a70.tar.bz2
scala-6f54b1dfede5d9b375eab029ef682e1a61da9a70.zip
SI-1264 fsc compiler output should go to stderr, like scalac
This properly sends the compiler output of `scala -e`, scala worksheets, ... to sdterr, just like scalac does. Before: $ scala -e 'foo' > /dev/null $ After: $ scala -e 'foo' > /dev/null /tmp/scalacmd8514641341855028538.scala:1: error: not found: value foo foo ^ one error found $
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompileSocket.scala')
-rw-r--r--src/compiler/scala/tools/nsc/CompileSocket.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala
index c4f06b59ec..c693fbe8e2 100644
--- a/src/compiler/scala/tools/nsc/CompileSocket.scala
+++ b/src/compiler/scala/tools/nsc/CompileSocket.scala
@@ -32,7 +32,8 @@ trait HasCompileSocket {
if (isErrorMessage(line))
noErrors = false
- compileSocket.echo(line)
+ // be consistent with scalac: everything goes to stderr
+ compileSocket.warn(line)
loop()
}
try loop()