Skip to content

Commit 36beb6a

Browse files
committed
Fix warns about unused value in plugin error
Motivation: The plugin error case for an incompatible target has an associated value which is currently ignored. Modifications: - Use the value Result: Fewer warnings
1 parent 0e6d93b commit 36beb6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/PluginsShared/PluginError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ enum PluginError: Error {
2323
extension PluginError: CustomStringConvertible {
2424
var description: String {
2525
switch self {
26-
case .incompatibleTarget(let string):
27-
"Build plugin applied to incompatible target."
26+
case .incompatibleTarget(let target):
27+
"Build plugin applied to incompatible target (\(target))."
2828
case .noConfigFilesFound:
2929
"No config files found. The build plugin relies on the existence of one or more '\(configFileName)' files in the target source."
3030
}

0 commit comments

Comments
 (0)