From 11df014b7fab14999d2de1ce5f86ef860dabfe2e Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Fri, 5 Feb 2016 01:57:02 +0100 Subject: Hide stack traces behind -Ydebug They're not very useful for end users and some tests like tests/neg/selfreq.scala always print these exceptions which makes it harder to read the test logs, Also use Thread.dumpStack() instead of creating an Exception and calling printStackTrace() on it. --- src/dotty/tools/dotc/reporting/ConsoleReporter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/reporting/ConsoleReporter.scala') diff --git a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala index e9b9964c3..8f1fbf797 100644 --- a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala +++ b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala @@ -63,7 +63,7 @@ class ConsoleReporter( if (reader != null) { val response = reader.read().asInstanceOf[Char].toLower if (response == 'a' || response == 's') { - (new Exception).printStackTrace() + Thread.dumpStack() if (response == 'a') sys.exit(1) } -- cgit v1.2.3