mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-25 02:41:10 +01:00
WIP: Xcode 8 beta 6
This commit is contained in:
@@ -32,7 +32,7 @@ import CoreData
|
||||
/**
|
||||
All errors thrown from CoreStore are expressed in `CoreStoreError` enum values.
|
||||
*/
|
||||
public enum CoreStoreError: ErrorProtocol, Hashable {
|
||||
public enum CoreStoreError: Error, Hashable {
|
||||
|
||||
/**
|
||||
A failure occured because of an unknown error.
|
||||
@@ -116,7 +116,7 @@ public enum CoreStoreError: ErrorProtocol, Hashable {
|
||||
|
||||
// MARK: Internal
|
||||
|
||||
internal init(_ error: ErrorProtocol?) {
|
||||
internal init(_ error: Error?) {
|
||||
|
||||
self = error.flatMap { $0.bridgeToSwift } ?? .unknown
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user