[AltServer] Improves ALTServerErrorIncompatibleDeveloperDisk error message

Uses NSError’s debug description, if available, to populate error alerts.
This commit is contained in:
Riley Testut
2022-03-01 16:07:20 -08:00
parent 37b00d670b
commit ebb236e47c
4 changed files with 48 additions and 2 deletions

View File

@@ -1219,6 +1219,7 @@ NSNotificationName const ALTDeviceManagerDeviceDidDisconnectNotification = @"ALT
// Connection failed with .unknown error code, so we assume the developer disk is NOT compatible.
NSMutableDictionary *userInfo = [@{
ALTOperatingSystemVersionErrorKey: NSStringFromOperatingSystemVersion(altDevice.osVersion),
NSFilePathErrorKey: diskURL.path,
NSUnderlyingErrorKey: error,
} mutableCopy];