Skip to content

Commit 0eecb71

Browse files
committed
Merge pull request #1124 from sjrd/fix-fatalerror-ctor
Fix FatalError's constructor to forward `msg` to super.
2 parents 36ce4bc + c682093 commit 0eecb71

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/dotty/tools/dotc/Driver.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package dotty.tools.dotc
22

3+
import dotty.tools.FatalError
34
import config.CompilerCommand
45
import core.Contexts.{Context, ContextBase}
56
import util.DotClass
@@ -101,6 +102,3 @@ abstract class Driver extends DotClass {
101102
sys.exit(if (process(args).hasErrors) 1 else 0)
102103
}
103104
}
104-
105-
class FatalError(msg: String) extends Exception
106-

0 commit comments

Comments
 (0)