From e98d57be7b2b10de3006422d3ad17b02ac71f6da Mon Sep 17 00:00:00 2001 From: Gareth Reese Date: Tue, 30 Apr 2024 14:15:24 +0100 Subject: [PATCH] Restore internal init on FlagsmithError --- FlagsmithClient/Classes/FlagsmithError.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlagsmithClient/Classes/FlagsmithError.swift b/FlagsmithClient/Classes/FlagsmithError.swift index e946b66..4f60711 100644 --- a/FlagsmithClient/Classes/FlagsmithError.swift +++ b/FlagsmithClient/Classes/FlagsmithError.swift @@ -46,7 +46,7 @@ public enum FlagsmithError: LocalizedError, Sendable { /// * as `EncodingError`: `.encoding()` error will be created. /// * as `DecodingError`: `.decoding()` error will be created. /// * default: `.unhandled()` error will be created. - init(_ error: Error) { + internal init(_ error: Error) { switch error { case let flagsmithError as FlagsmithError: self = flagsmithError