Fix some build errors.

This commit is contained in:
Brent Simmons
2024-04-06 22:09:17 -07:00
parent 7311c25d35
commit bd077687c1
5 changed files with 91 additions and 62 deletions

View File

@@ -12,6 +12,7 @@ import Tree
import Articles
import Account
import Parser
import CommonErrors
// Run add-feed sheet.
// If it returns with URL and optional name,
@@ -69,10 +70,10 @@ import Parser
let feed = try await account.createFeed(url: url.absoluteString, name: title, container: container, validateFeed: true)
NotificationCenter.default.post(name: .UserDidAddFeed, object: self, userInfo: [UserInfoKey.feed: feed])
} catch AccountError.createErrorAlreadySubscribed {
} catch CommonError.createErrorAlreadySubscribed {
self.showAlreadySubscribedError(url.absoluteString)
} catch AccountError.createErrorNotFound {
} catch CommonError.createErrorNotFound {
self.showNoFeedsErrorMessage()
} catch {