diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-05-19 13:20:18 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-05-19 13:20:18 +0000 |
commit | c05a58bd3453ceba0215bd9d2bd49cd6dfe8745d (patch) | |
tree | 97e37ee1c8dcab92249aab911867aff44c3d8631 | |
parent | dbe346af1c5de3251c8cd18e4476916f0e7daebe (diff) | |
download | scala-c05a58bd3453ceba0215bd9d2bd49cd6dfe8745d.tar.gz scala-c05a58bd3453ceba0215bd9d2bd49cd6dfe8745d.tar.bz2 scala-c05a58bd3453ceba0215bd9d2bd49cd6dfe8745d.zip |
Even if beQuiet was specified, still print out ...
Even if beQuiet was specified, still print out stack traces resulting
from thrown exceptions
-rw-r--r-- | src/compiler/scala/tools/nsc/Interpreter.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala index b05222e577..a3da43ffce 100644 --- a/src/compiler/scala/tools/nsc/Interpreter.scala +++ b/src/compiler/scala/tools/nsc/Interpreter.scala @@ -68,7 +68,8 @@ class Interpreter(val settings: Settings, reporter: Reporter, out: PrintWriter) /** whether to print out result lines */ private var printResults: Boolean = true - /** be quiet; do not print out the results of each submitted command */ + /** Be quiet. Do not print out the results of each + * submitted command unless an exception is thrown. */ def beQuiet = { printResults = false } /** directory to save .class files to */ @@ -245,7 +246,7 @@ class Interpreter(val settings: Settings, reporter: Reporter, out: PrintWriter) val Pair(interpreterResultString, succeeded) = req.loadAndRun - if(printResults) { + if(printResults || !succeeded) { // print the result out.print(interpreterResultString) |