Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Plugins/PluginsShared/PluginError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ enum PluginError: Swift.Error, CustomStringConvertible, LocalizedError {
let targetNames = targetNames.joined(separator: ", ", lastSeparator: " and ")
return "Found no targets with names \(targetNames)."
case .fileErrors(let fileErrors):
return "Issues with required files: \(fileErrors.map(\.description).joined(separator: ", and"))."
return "Issues with required files:\n\(fileErrors.map { $0 .description.prepended("- ") }.joined(separator: "\n"))."
}
}

Expand Down
6 changes: 6 additions & 0 deletions Plugins/PluginsShared/PluginUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,9 @@ extension Array where Element == String {
return "\(self.dropLast().joined(separator: separator))\(lastSeparator)\(self.last!)"
}
}

extension String {
func prepended(_ prefix: String) -> String {
return prefix + self
}
}