Skip to content

Commit ca00f55

Browse files
authored
Mention // SKIP @bridge in "Unable to bridge" error message (#104)
1 parent 92ba906 commit ca00f55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/SkipBridge/BridgedTypes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public struct AnyBridging {
195195
if String(describing: value) == "nil" && Mirror(reflecting: value).displayStyle == .optional {
196196
return nil
197197
}
198-
fatalError("Unable to bridge Swift instance \(value) of type: \(type(of: value))")
198+
fatalError("Unable to bridge Swift instance \(value) of type: \(type(of: value)); this is usually due to missing // SKIP @bridge or // SKIP @bridgeMembers on the Swift type")
199199
}
200200
}
201201

0 commit comments

Comments
 (0)