Skip to content

Commit 3d7d847

Browse files
author
Florian Rieger
committed
Improved InteractorError.
1 parent eb4978e commit 3d7d847

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/InteractorError.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ public extension InteractorError {
2727

2828
public var message: String {
2929
get {
30-
return userInfo[NSLocalizedDescriptionKey] as? String ?? ""
30+
// Use localizedDescription instead in infoDict,
31+
// since some CoreData error have a localizedDescription but no entry in the dictionary.
32+
return localizedDescription
3133
}
3234
}
3335

0 commit comments

Comments
 (0)