We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156500d commit ab04edcCopy full SHA for ab04edc
Sources/PackagePlugin/Implementation.swift
@@ -54,7 +54,9 @@ extension Plugin {
54
switch context.pluginAction {
55
case .createBuildToolCommands:
56
// Check that the plugin conforms to `BuildToolPlugin`, and get the commands.
57
- guard let plugin = plugin as? BuildToolPlugin else { throw PluginDeserializationError.malformedInputJSON("...") }
+ guard let plugin = plugin as? BuildToolPlugin else {
58
+ throw PluginDeserializationError.malformedInputJSON("Plugin declared with `buildTool` capability but doesn't conform to `BuildToolPlugin` protocol")
59
+ }
60
let commands = try plugin.createBuildCommands(context: context)
61
62
// Convert the commands to the encodable output representation SwiftPM currently expects.
0 commit comments