Skip to content

Commit aefc79d

Browse files
committed
Fix Swift Package Index build failed in Swift 5.7 and Swift 5.8
1 parent c2132a2 commit aefc79d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Error/GenerateError.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ enum GenerateError: Error, CustomStringConvertible {
2020
var description: String {
2121
switch self {
2222
case .unknown(let error):
23-
"Unknown Error: \(error.localizedDescription)"
23+
return "Unknown Error: \(error.localizedDescription)"
2424
case .notInstallSFSymbols:
25-
"SF Symbols.app is not installed yet! Please go to Apple Developer Website to download!"
25+
return "SF Symbols.app is not installed yet! Please go to Apple Developer Website to download!"
2626
case .notInstallSFSymbolsBeta:
27-
"SF Symbols beta.app is not installed yet! Please go to Apple Developer Website to download!"
27+
return "SF Symbols beta.app is not installed yet! Please go to Apple Developer Website to download!"
2828
case .propertyList(let error):
29-
"PropertyList Error: \(error.localizedDescription)"
29+
return "PropertyList Error: \(error.localizedDescription)"
3030
}
3131
}
3232
}

0 commit comments

Comments
 (0)