diff --git a/Platform/Shared/UTMDownloadVMTask.swift b/Platform/Shared/UTMDownloadVMTask.swift index 8c065fea5..66cdc2a35 100644 --- a/Platform/Shared/UTMDownloadVMTask.swift +++ b/Platform/Shared/UTMDownloadVMTask.swift @@ -102,13 +102,13 @@ class UTMDownloadVMTask: UTMDownloadTask { } private class UnzipNoUTMFileError: Error { - var localizedDescription: String { + var errorDescription: String? { NSLocalizedString("There is no UTM file in the downloaded ZIP archive.", comment: "Error shown when importing a ZIP file from web that doesn't contain a UTM Virtual Machine.") } } private class CreateUTMFailed: Error { - var localizedDescription: String { + var errorDescription: String? { NSLocalizedString("Failed to parse the downloaded VM.", comment: "UTMDownloadVMTask") } } diff --git a/Scripting/UTMScriptingVirtualMachineImpl.swift b/Scripting/UTMScriptingVirtualMachineImpl.swift index f92ff9f75..51bddc59f 100644 --- a/Scripting/UTMScriptingVirtualMachineImpl.swift +++ b/Scripting/UTMScriptingVirtualMachineImpl.swift @@ -172,7 +172,7 @@ extension UTMScriptingVirtualMachineImpl { case operationNotAvailable case operationNotSupported - var localizedDescription: String { + var errorDescription: String? { switch self { case .operationNotAvailable: return NSLocalizedString("Operation not available.", comment: "UTMScriptingVirtualMachineImpl") case .operationNotSupported: return NSLocalizedString("Operation not supported by the backend.", comment: "UTMScriptingVirtualMachineImpl") diff --git a/utmctl/UTMCtl.swift b/utmctl/UTMCtl.swift index 3a9e0977e..50372c020 100644 --- a/utmctl/UTMCtl.swift +++ b/utmctl/UTMCtl.swift @@ -120,7 +120,7 @@ extension UTMCtl { case applicationNotFound case virtualMachineNotFound - var localizedDescription: String { + var errorDescription: String? { switch self { case .applicationNotFound: return "Application not found." case .virtualMachineNotFound: return "Virtual machine not found."