From 803eb615cd0f70f10a8f46df82f1b89629bb8143 Mon Sep 17 00:00:00 2001 From: Magesh K <47920326+mahee96@users.noreply.github.com> Date: Wed, 29 Jan 2025 02:38:27 +0530 Subject: [PATCH] [Fix]: VerifyError message was missing version info for mismatched versions --- AltStore/Operations/Errors/VerificationError.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AltStore/Operations/Errors/VerificationError.swift b/AltStore/Operations/Errors/VerificationError.swift index 3219dfec..635a728d 100644 --- a/AltStore/Operations/Errors/VerificationError.swift +++ b/AltStore/Operations/Errors/VerificationError.swift @@ -155,11 +155,11 @@ struct VerificationError: ALTLocalizedError case .mismatchedVersion: let appName = self.$app.name ?? NSLocalizedString("the app", comment: "") - return String(format: NSLocalizedString("The downloaded version of %@ does not match the version specified by the source.", comment: ""), appName) + return String(format: NSLocalizedString("The downloaded version of %@ does not match the version specified by the source.\nExpected version: %@\nFound version: %@", comment: ""), appName, expectedVersion ?? "nil", version ?? "nil") case .mismatchedBuildVersion: let appName = self.$app.name ?? NSLocalizedString("the app", comment: "") - return String(format: NSLocalizedString("The downloaded version of %@ does not match the build number specified by the source.", comment: ""), appName) + return String(format: NSLocalizedString("The downloaded version of %@ does not match the build number specified by the source.\nExpected version: %@\nFound version: %@", comment: ""), appName, expectedVersion ?? "nil", version ?? "nil") case .undeclaredPermissions: let appName = self.$app.name ?? NSLocalizedString("The app", comment: "")