diff --git a/Sources/FoundationEssentials/Error/CocoaError.swift b/Sources/FoundationEssentials/Error/CocoaError.swift index cdada070c..08a1baeb0 100644 --- a/Sources/FoundationEssentials/Error/CocoaError.swift +++ b/Sources/FoundationEssentials/Error/CocoaError.swift @@ -229,7 +229,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.