Skip to content

Commit c6809a1

Browse files
Implement public initializer for UnimplementedFailure (#108)
1 parent a4c2b6d commit c6809a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/IssueReporting/Unimplemented.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ public func unimplemented<Result>(
174174
/// An error thrown from throwing `unimplemented` closures.
175175
public struct UnimplementedFailure: Error {
176176
public let description: String
177+
178+
public init(description: String) {
179+
self.description = description
180+
}
177181
}
178182

179183
package func _fail(

0 commit comments

Comments
 (0)