Properly handle errors where an app cannot be added to icon cache

This commit is contained in:
opa334
2023-12-12 13:21:58 +01:00
parent bbdd0fdcdd
commit 8cdef95733
4 changed files with 14 additions and 5 deletions
+3
View File
@@ -77,6 +77,9 @@ extern NSUserDefaults* trollStoreUserDefaults();
case 180:
errorDescription = @"The app you tried to install contains encrypted binaries, which cannot have the CoreTrust bypass applied to them. Please ensure you install decrypted apps.";
break;
case 181:
errorDescription = @"Failed to add app to icon cache.";
break;
}
NSError* error = [NSError errorWithDomain:TrollStoreErrorDomain code:code userInfo:@{NSLocalizedDescriptionKey : errorDescription}];