Skip to content

Commit 86450c3

Browse files
committed
Print stack trace only under -Ydebug
1 parent 54ed24d commit 86450c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ object ErrorReporting {
8181
if (tree.tpe.widen.exists)
8282
i"${exprStr(tree)} does not take ${kind}parameters"
8383
else {
84-
new FatalError("").printStackTrace()
84+
if (ctx.settings.Ydebug.value) new FatalError("").printStackTrace()
8585
i"undefined: $tree # ${tree.uniqueId}: ${tree.tpe.toString} at ${ctx.phase}"
8686
}
8787

0 commit comments

Comments
 (0)