diff --git a/Sources/Foundation/DateComponents.swift b/Sources/Foundation/DateComponents.swift index 95865d25bb..3f87791aab 100644 --- a/Sources/Foundation/DateComponents.swift +++ b/Sources/Foundation/DateComponents.swift @@ -38,7 +38,7 @@ extension DateComponents : _ObjectiveCBridgeable { public static func _forceBridgeFromObjectiveC(_ dateComponents: NSDateComponents, result: inout DateComponents?) { if !_conditionallyBridgeFromObjectiveC(dateComponents, result: &result) { - fatalError("Unable to bridge \(DateComponents.self) to \(self)") + fatalError("Unable to bridge \(NSDateComponents.self) to \(self)") } } diff --git a/Sources/Foundation/Notification.swift b/Sources/Foundation/Notification.swift index 936d28caf7..b125bead13 100644 --- a/Sources/Foundation/Notification.swift +++ b/Sources/Foundation/Notification.swift @@ -111,7 +111,7 @@ extension Notification : _ObjectiveCBridgeable { public static func _forceBridgeFromObjectiveC(_ x: NSNotification, result: inout Notification?) { if !_conditionallyBridgeFromObjectiveC(x, result: &result) { - fatalError("Unable to bridge type") + fatalError("Unable to bridge \(NSNotification.self) to \(self)") } }