Skip to content

Commit 94f174e

Browse files
committed
improve CustomNSError.errorDomain calculation
1 parent b49bbc6 commit 94f174e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/Error/CocoaError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public protocol CustomNSError : Error {
229229
public extension CustomNSError {
230230
/// Default domain of the error.
231231
static var errorDomain: String {
232-
return String(reflecting: self)
232+
return _typeName(type(of: self), qualified: true)
233233
}
234234

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

0 commit comments

Comments
 (0)