Skip to content

Commit b01d1bd

Browse files
committed
When terminating because a subprocess failed, don't print error: fatalError
We already have a way to say "a subprocess failed", use it. Fixes rdar://121627384.
1 parent 49daa7e commit b01d1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDriverExecution/MultiJobExecutor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public final class MultiJobExecutor {
318318

319319
// Throw the stub error the build didn't finish successfully.
320320
if !result.success {
321-
throw Diagnostics.fatalError
321+
throw Driver.ErrorDiagnostics.emitted
322322
}
323323
}
324324

0 commit comments

Comments
 (0)