Add error code for invalid platform

This commit is contained in:
Taj • forcequit 2026-05-02 13:22:33 -04:00 committed by GitHub
parent 88424f683b
commit f1c2fcaf2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,6 +91,9 @@ extern NSUserDefaults* trollStoreUserDefaults();
break; break;
case 185: case 185:
errorDescription = @"Failed to sign the app. The CoreTrust bypass returned a non zero status code."; errorDescription = @"Failed to sign the app. The CoreTrust bypass returned a non zero status code.";
break;
case 186:
errorDescription = @"The app you tried to install is not supported on this platform. The installation has been prevented as this application will not launch at all if it were to be installed.";
} }
NSError* error = [NSError errorWithDomain:TrollStoreErrorDomain code:code userInfo:@{NSLocalizedDescriptionKey : errorDescription}]; NSError* error = [NSError errorWithDomain:TrollStoreErrorDomain code:code userInfo:@{NSLocalizedDescriptionKey : errorDescription}];