Skip to content

Commit a0147ac

Browse files
authored
improve CustomNSError.errorDomain calculation (#1032)
1 parent b49bbc6 commit a0147ac

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(self, qualified: true)
233233
}
234234

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

0 commit comments

Comments
 (0)