mirror of
https://github.com/opa334/TrollStore.git
synced 2026-05-17 23:45:10 +08:00
Add error code for invalid platform
This commit is contained in:
parent
88424f683b
commit
f1c2fcaf2d
|
|
@ -91,6 +91,9 @@ extern NSUserDefaults* trollStoreUserDefaults();
|
|||
break;
|
||||
case 185:
|
||||
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}];
|
||||
|
|
@ -193,4 +196,4 @@ extern NSUserDefaults* trollStoreUserDefaults();
|
|||
return spawnRoot(rootHelperPath(), @[@"modify-registration", appPath, newState], nil, nil);
|
||||
}
|
||||
|
||||
@end
|
||||
@end
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user