diff --git a/Sources/tart/Platform/Darwin.swift b/Sources/tart/Platform/Darwin.swift index 7145810..8f05890 100644 --- a/Sources/tart/Platform/Darwin.swift +++ b/Sources/tart/Platform/Darwin.swift @@ -38,7 +38,7 @@ struct UnsupportedHostOSError: Error, CustomStringConvertible { throw DecodingError.dataCorruptedError(forKey: .hardwareModel, in: container, debugDescription: "") } guard let hardwareModel = VZMacHardwareModel.init(dataRepresentation: data) else { - throw DecodingError.dataCorruptedError(forKey: .hardwareModel, in: container, debugDescription: "") + throw UnsupportedHostOSError() } self.hardwareModel = hardwareModel }