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
1010import transform .TreeChecker
1111import java .io .{BufferedWriter , OutputStreamWriter }
1212import scala .reflect .io .VirtualFile
13+ import scala .util .control .NonFatal
1314
1415class Run (comp : Compiler )(implicit ctx : Context ) {
1516
@@ -27,9 +28,13 @@ class Run(comp: Compiler)(implicit ctx: Context) {
2728 }
2829 }
2930
30- def compile (fileNames : List [String ]): Unit = {
31+ def compile (fileNames : List [String ]): Unit = try {
3132 val sources = fileNames map getSource
3233 compileSources(sources)
34+ } catch {
35+ case NonFatal (ex) =>
36+ println(s " exception occurred while compiling $units%, % " )
37+ throw ex
3338 }
3439
3540 /** 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