Skip to content

Commit e7e3390

Browse files
authored
Merge pull request #1978 from bnbarham/error-on-internal-failure
Always diagnose failures in job execution
2 parents e4a9efa + b3f62e8 commit e7e3390

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/SwiftDriverExecution/MultiJobExecutor.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,8 @@ class ExecuteJobRule: LLBuildRule {
655655
context.cancelBuildIfNeeded(result)
656656
value = .jobExecution(success: success)
657657
} catch {
658-
if error is DiagnosticData {
659-
context.diagnosticsEngine.emit(error)
660-
}
658+
context.diagnosticsEngine.emit(error)
659+
661660
// Only inform finished job if the job has been started, otherwise the build
662661
// system may complain about malformed output
663662
if (pendingFinish) {

0 commit comments

Comments
 (0)