Remove deliberate crash when failing to delete folder for account.

This commit is contained in:
Brent Simmons committed 2025-11-29 11:16:01 -08:00
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()