Skip to content

Commit 66421f0

Browse files
authored
make error message more specific when failing to create build system with LLBuild (#3761)
motivation: clearer error message to help diagnose when LLBuild fails changes: instead of throwing a generic error, throw a more detailed one
1 parent 70975dc commit 66421f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Build/BuildOperation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public final class BuildOperation: PackageStructureDelegate, SPMBuildCore.BuildS
219219

220220
// Build the package structure target which will re-generate the llbuild manifest, if necessary.
221221
if !buildSystem.build(target: "PackageStructure") {
222-
throw Diagnostics.fatalError
222+
throw StringError("LLBuild::build failed building package structure")
223223
}
224224
}
225225

0 commit comments

Comments
 (0)