Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.

Commit 3359c2a

Browse files
committed
Descriptive errors and comments
1 parent 6eac9ad commit 3359c2a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

AltKit/NSError+ALTServerError.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ - (nullable NSString *)alt_localizedDescription
3333
return NSLocalizedString(@"An unknown error occured.", @"");
3434

3535
case ALTServerErrorConnectionFailed:
36-
return NSLocalizedString(@"Could not connect to device.", @"");
36+
return NSLocalizedString(@"Could not connect to device. Make sure you trusted this computer on your device.", @"");
3737

3838
case ALTServerErrorLostConnection:
3939
return NSLocalizedString(@"Lost connection to device.", @"");
@@ -54,7 +54,7 @@ - (nullable NSString *)alt_localizedDescription
5454
return NSLocalizedString(@"You have reached the limit of 3 apps per device.", @"");
5555

5656
case ALTServerErrorUnsupportediOSVersion:
57-
return NSLocalizedString(@"Unsupported iOS version", @"");
57+
return NSLocalizedString(@"This app does not support your device.", @"");
5858

5959
case ALTServerErrorUnknownRequest:
6060
return NSLocalizedString(@"This app does not support this request.", @"");

AltSign/ALTSigner.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ - (NSProgress *)signAppAtURL:(NSURL *)appURL provisioningProfiles:(NSArray<ALTPr
201201
}
202202

203203
return profiles.firstObject;
204+
// Original code: return nil
204205
};
205206

206207
NSError * (^prepareApp)(ALTApplication *) = ^NSError *(ALTApplication *app) {

0 commit comments

Comments
 (0)