mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 03:03:31 +01:00
[Fix]: VerifyError message was missing version info for mismatched versions
This commit is contained in:
@@ -155,11 +155,11 @@ struct VerificationError: ALTLocalizedError
|
|||||||
|
|
||||||
case .mismatchedVersion:
|
case .mismatchedVersion:
|
||||||
let appName = self.$app.name ?? NSLocalizedString("the app", comment: "")
|
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:
|
case .mismatchedBuildVersion:
|
||||||
let appName = self.$app.name ?? NSLocalizedString("the app", comment: "")
|
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:
|
case .undeclaredPermissions:
|
||||||
let appName = self.$app.name ?? NSLocalizedString("The app", comment: "")
|
let appName = self.$app.name ?? NSLocalizedString("The app", comment: "")
|
||||||
|
|||||||
Reference in New Issue
Block a user