Skip to content

Commit 0712fc9

Browse files
committed
Match Darwin implementation of NSError.description
1 parent bcb7858 commit 0712fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ open class NSError : NSObject, NSCopying, NSSecureCoding, NSCoding {
181181
}
182182

183183
override open var description: String {
184-
return localizedDescription
184+
return "Error Domain=\(domain) Code=\(code) \"\(localizedFailureReason ?? "(null)")\""
185185
}
186186

187187
// -- NSObject Overrides --

0 commit comments

Comments
 (0)