We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05c9f02 commit 0c3e129Copy full SHA for 0c3e129
Sources/IssueReporting/IssueReporters/RuntimeWarningReporter.swift
@@ -90,6 +90,24 @@ public struct _RuntimeWarningReporter: IssueReporter {
90
#endif
91
}
92
93
+ @_transparent
94
+ public func reportIssue(
95
+ _ error: any Error,
96
+ _ message: @autoclosure () -> String?,
97
+ fileID: StaticString,
98
+ filePath: StaticString,
99
+ line: UInt,
100
+ column: UInt
101
+ ) {
102
+ reportIssue(
103
+ "Caught error: \(error)\(message().map { ": \($0)" } ?? "")",
104
+ fileID: fileID,
105
+ filePath: filePath,
106
+ line: line,
107
+ column: column
108
+ )
109
+ }
110
+
111
public func expectIssue(
112
_ message: @autoclosure () -> String?,
113
fileID: StaticString,
0 commit comments