Skip to content

Commit 9218b1c

Browse files
committed
Fix FatalError's constructor to forward msg to super.
Previously, getMessage() always returned `null`, causing NPEs when trying to report a FatalError.
1 parent 36ce4bc commit 9218b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/Driver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,5 @@ abstract class Driver extends DotClass {
102102
}
103103
}
104104

105-
class FatalError(msg: String) extends Exception
105+
class FatalError(msg: String) extends Exception(msg)
106106

0 commit comments

Comments
 (0)