Skip to content

Commit b8b6e61

Browse files
committed
handel missing files gracefully
1 parent 5403ce6 commit b8b6e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/rwcRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ namespace RWC {
199199
}
200200
// Do not include the library in the baselines to avoid noise
201201
const baselineFiles = inputFiles.concat(otherFiles).filter(f => !Harness.isDefaultLibraryFile(f.unitName));
202-
const errors = compilerResult.errors.filter(e => !Harness.isDefaultLibraryFile(e.file.fileName));
202+
const errors = compilerResult.errors.filter(e => e.file && !Harness.isDefaultLibraryFile(e.file.fileName));
203203
return Harness.Compiler.getErrorBaseline(baselineFiles, errors);
204204
}, baselineOpts);
205205
});

0 commit comments

Comments
 (0)