From fe2fabad80301810e31bdd66be68898f7c76d645 Mon Sep 17 00:00:00 2001 From: ChrisBenua Date: Mon, 4 Nov 2024 19:51:47 +0300 Subject: [PATCH] improve CustomNSError.errorDomain calculation --- Sources/Foundation/NSError.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.