Browse Source

Fix warnings about unused value in plugin error (#33)

Motivation:

The plugin error case for an incompatible target has an associated value
which is currently ignored.

Modifications:

- Use the value

Result:

Fewer warnings
George Barnett 1 year ago
parent
commit
05334bbf44
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Plugins/PluginsShared/PluginError.swift

+ 2 - 2
Plugins/PluginsShared/PluginError.swift

@@ -23,8 +23,8 @@ enum PluginError: Error {
 extension PluginError: CustomStringConvertible {
 extension PluginError: CustomStringConvertible {
   var description: String {
   var description: String {
     switch self {
     switch self {
-    case .incompatibleTarget(let string):
-      "Build plugin applied to incompatible target."
+    case .incompatibleTarget(let target):
+      "Build plugin applied to incompatible target (\(target))."
     case .noConfigFilesFound:
     case .noConfigFilesFound:
       "No config files found. The build plugin relies on the existence of one or more '\(configFileName)' files in the target source."
       "No config files found. The build plugin relies on the existence of one or more '\(configFileName)' files in the target source."
     }
     }