Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Improved error messages about unsupported relations
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-cain13 committed Nov 27, 2014
1 parent 8f2ef0e commit 038f933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CoreDataKit/Importing/NSManagedObject+Importing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ extension NSManagedObject
}

case let .Some(value as [AnyObject]):
let error = NSError(domain: CoreDataKitErrorDomain, code: CoreDataKitErrorCode.UnimplementedMethod.rawValue, userInfo: [NSLocalizedDescriptionKey: "Multiple referenced / nested relationships not yet supported with relation type \(RelationType.Embedding)"])
let error = NSError(domain: CoreDataKitErrorDomain, code: CoreDataKitErrorCode.UnimplementedMethod.rawValue, userInfo: [NSLocalizedDescriptionKey: "Multiple nested relationships not yet supported with relation type \(RelationType.Embedding)"])
return Result(error)

case let .Some(value):
let error = NSError(domain: CoreDataKitErrorDomain, code: CoreDataKitErrorCode.UnimplementedMethod.rawValue, userInfo: [NSLocalizedDescriptionKey: "Referenced relationships not yet supported with relation type \(RelationType.Embedding)"])
let error = NSError(domain: CoreDataKitErrorDomain, code: CoreDataKitErrorCode.UnimplementedMethod.rawValue, userInfo: [NSLocalizedDescriptionKey: "Referenced relationships are not supported with relation type \(RelationType.Embedding)"])
return Result(error)

case .Null:
Expand Down

0 comments on commit 038f933

Please sign in to comment.