mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 03:08:43 +00:00
Remove deliberate crash when failing to delete folder for account.
This commit is contained in:
1 parent
b19735233f
commit
9f4e6d2609
1 file changed
+4
-2
@@ -170,9 +170,11 @@ public final class AccountManager: UnreadCountProvider {
|
||||
do {
|
||||
try FileManager.default.removeItem(atPath: account.dataFolder)
|
||||
}
|
||||
catch let error as CocoaError where error.code == .fileNoSuchFile {
|
||||
// Already doesn’t exist.
|
||||
}
|
||||
catch {
|
||||
assertionFailure("Could not create folder for OnMyMac account.")
|
||||
abort()
|
||||
// TODO: add logging and/or reporting to user. No need to crash here.
|
||||
}
|
||||
|
||||
updateUnreadCount()
|
||||
|
||||
Reference in new issue
Block a user