From c6809a193975cab4d5308c64bd1d51e0df467928 Mon Sep 17 00:00:00 2001 From: Andriy Slyusar Date: Wed, 14 Aug 2024 18:15:55 +0200 Subject: [PATCH] Implement public initializer for UnimplementedFailure (#108) --- Sources/IssueReporting/Unimplemented.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/IssueReporting/Unimplemented.swift b/Sources/IssueReporting/Unimplemented.swift index 312a4b8..4a6f1b6 100644 --- a/Sources/IssueReporting/Unimplemented.swift +++ b/Sources/IssueReporting/Unimplemented.swift @@ -174,6 +174,10 @@ public func unimplemented( /// An error thrown from throwing `unimplemented` closures. public struct UnimplementedFailure: Error { public let description: String + + public init(description: String) { + self.description = description + } } package func _fail(