Skip to content

Commit 7b0f970

Browse files
committed
Merge branch 'fix-ui-tests-compilation'
2 parents 2aa3a24 + 0bc41b3 commit 7b0f970

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ios/Shared/LaunchArguments.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//
88

99
import Foundation
10-
import MullvadTypes
1110

1211
public protocol Taggable {
1312
static var tag: String { get }
@@ -48,7 +47,10 @@ extension Encodable {
4847
public func toJSON(_ encoder: JSONEncoder = JSONEncoder()) throws -> String {
4948
let data = try encoder.encode(self)
5049
guard let result = String(bytes: data, encoding: .utf8) else {
51-
throw StringDecodingError(data: data)
50+
throw EncodingError.invalidValue(
51+
self,
52+
EncodingError.Context(codingPath: [], debugDescription: "Could not encode self to a utf-8 string")
53+
)
5254
}
5355
return result
5456
}

0 commit comments

Comments
 (0)