summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-05-19 13:20:18 +0000
committerLex Spoon <lex@lexspoon.org>2006-05-19 13:20:18 +0000
commitc05a58bd3453ceba0215bd9d2bd49cd6dfe8745d (patch)
tree97e37ee1c8dcab92249aab911867aff44c3d8631 /src
parentdbe346af1c5de3251c8cd18e4476916f0e7daebe (diff)
downloadscala-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
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/Interpreter.scala5
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)