From 0bc41b3f17287a520370fca4dc05e693bc4ec9bc Mon Sep 17 00:00:00 2001 From: Bug Magnet Date: Tue, 3 Dec 2024 12:11:08 +0100 Subject: [PATCH] Fix UITest builds --- ios/Shared/LaunchArguments.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ios/Shared/LaunchArguments.swift b/ios/Shared/LaunchArguments.swift index e1f3c0ad41ef..0fa077f0904b 100644 --- a/ios/Shared/LaunchArguments.swift +++ b/ios/Shared/LaunchArguments.swift @@ -7,7 +7,6 @@ // import Foundation -import MullvadTypes public protocol Taggable { static var tag: String { get } @@ -48,7 +47,10 @@ extension Encodable { public func toJSON(_ encoder: JSONEncoder = JSONEncoder()) throws -> String { let data = try encoder.encode(self) guard let result = String(bytes: data, encoding: .utf8) else { - throw StringDecodingError(data: data) + throw EncodingError.invalidValue( + self, + EncodingError.Context(codingPath: [], debugDescription: "Could not encode self to a utf-8 string") + ) } return result }