Skip to content

Commit 5bcf58c

Browse files
committed
Always return .success when compiler has non-zero exit status
This is required for unit tests to pass.
1 parent 4b2ce9a commit 5bcf58c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageLoading/ManifestLoader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ public final class ManifestLoader: ManifestLoaderProtocol {
855855

856856
// Return now if there was an error.
857857
if compilerResult.exitStatus != .terminated(code: 0) {
858-
return completion(.failure(ProcessResult.Error.nonZeroExit(compilerResult)))
858+
return completion(.success(evaluationResult))
859859
}
860860

861861
// Pass an open file descriptor of a file to which the JSON representation of the manifest will be written.

0 commit comments

Comments
 (0)