Skip to content

Commit 1acc48b

Browse files
authored
improve CustomNSError.errorDomain calculation (#5132)
1 parent 8c0a11e commit 1acc48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Foundation/NSError.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public protocol CustomNSError : Error {
300300
public extension CustomNSError {
301301
/// Default domain of the error.
302302
static var errorDomain: String {
303-
return String(reflecting: self)
303+
return _typeName(self, qualified: true)
304304
}
305305

306306
/// The error code within the given domain.

0 commit comments

Comments
 (0)