From 27a658c86e06b865cba1b3d1d2b0bc423fe0ad9a Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 9 Feb 2011 09:31:41 +0000 Subject: Added a system property which disables stack tr... Added a system property which disables stack trace suppression. (At present it is the very terse -Dscala.control.no-trace-suppression.) This makes zero-output crashes involving things like MissingType significantly less maddening. It would behoove us to have a central naming scheme for such properties. Review by community. --- src/compiler/scala/tools/nsc/Main.scala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/compiler/scala/tools/nsc/Main.scala') diff --git a/src/compiler/scala/tools/nsc/Main.scala b/src/compiler/scala/tools/nsc/Main.scala index ff197a125c..de1d148a36 100644 --- a/src/compiler/scala/tools/nsc/Main.scala +++ b/src/compiler/scala/tools/nsc/Main.scala @@ -109,11 +109,12 @@ object Main extends AnyRef with EvalLoop { } } catch { - case FatalError(msg) => - reporter.error(null, "fatal error: " + msg) - case ex if compiler.opt.richExes => + case ex => compiler.logThrowable(ex) - throw ex + ex match { + case FatalError(msg) => reporter.error(null, "fatal error: " + msg) + case _ => throw ex + } } } } -- cgit v1.2.3