diff --git a/Sources/Foundation/NSError.swift b/Sources/Foundation/NSError.swift index 908d565a95..2b75bd4ffd 100644 --- a/Sources/Foundation/NSError.swift +++ b/Sources/Foundation/NSError.swift @@ -300,7 +300,7 @@ public protocol CustomNSError : Error { public extension CustomNSError { /// Default domain of the error. static var errorDomain: String { - return String(reflecting: self) + return _typeName(self, qualified: true) } /// The error code within the given domain.