File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import reporting.Reporter
10
10
import transform .TreeChecker
11
11
import java .io .{BufferedWriter , OutputStreamWriter }
12
12
import scala .reflect .io .VirtualFile
13
+ import scala .util .control .NonFatal
13
14
14
15
class Run (comp : Compiler )(implicit ctx : Context ) {
15
16
@@ -27,9 +28,13 @@ class Run(comp: Compiler)(implicit ctx: Context) {
27
28
}
28
29
}
29
30
30
- def compile (fileNames : List [String ]): Unit = {
31
+ def compile (fileNames : List [String ]): Unit = try {
31
32
val sources = fileNames map getSource
32
33
compileSources(sources)
34
+ } catch {
35
+ case NonFatal (ex) =>
36
+ println(s " exception occurred while compiling $units%, % " )
37
+ throw ex
33
38
}
34
39
35
40
/** TODO: There's a fundamental design problem here: We assmble phases using `squash`
You can’t perform that action at this time.
0 commit comments