Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ extension DiskPersistence {

cachedStoreInfo = storeInfo
return storeInfo
} catch URLError.fileDoesNotExist, CocoaError.fileReadNoSuchFile {
return StoreInfo(modificationDate: Date())
} catch let error as NSError where error.domain == NSPOSIXErrorDomain && error.code == Int(POSIXError.ENOENT.rawValue) {
} catch URLError.fileDoesNotExist, CocoaError.fileNoSuchFile, CocoaError.fileReadNoSuchFile, POSIXError.ENOENT {
return StoreInfo(modificationDate: Date())
} catch {
throw error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ extension Snapshot {

cachedManifest = manifest
return manifest
} catch URLError.fileDoesNotExist, CocoaError.fileReadNoSuchFile {
return SnapshotManifest(id: id, modificationDate: Date())
} catch let error as NSError where error.domain == NSPOSIXErrorDomain && error.code == Int(POSIXError.ENOENT.rawValue) {
} catch URLError.fileDoesNotExist, CocoaError.fileNoSuchFile, CocoaError.fileReadNoSuchFile, POSIXError.ENOENT {
return SnapshotManifest(id: id, modificationDate: Date())
} catch {
throw error
Expand Down