summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/transform/Erasure.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Erasure.scala b/src/compiler/scala/tools/nsc/transform/Erasure.scala
index dbceb1f721..3dc705e167 100644
--- a/src/compiler/scala/tools/nsc/transform/Erasure.scala
+++ b/src/compiler/scala/tools/nsc/transform/Erasure.scala
@@ -604,7 +604,8 @@ abstract class Erasure extends AddInterfaces
abort()
case ex: Exception =>
//if (settings.debug.value)
- Console.println("exception when typing " + tree);
+ try Console.println("exception when typing " + tree)
+ finally throw ex
throw ex
}
def adaptCase(cdef: CaseDef): CaseDef = {