From b4e1622342ef4612cbb6b7a906a524b651ed40f4 Mon Sep 17 00:00:00 2001 From: ChrisBenua Date: Mon, 4 Nov 2024 20:58:28 +0300 Subject: [PATCH] improve CustomNSError.errorDomain calculation --- Sources/FoundationEssentials/Error/CocoaError.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.