This repository was archived by the owner on Feb 6, 2023. It is now read-only.
File tree 4 files changed +7
-1
lines changed
XcodeGitHub.app/Contents/MacOS
XcodeGitHub.framework/Versions/A
4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,9 @@ + (id) retrieveValueForService:(NSString*)service key:(NSString*)key error:(NSEr
124
124
};
125
125
CFDataRef valueData = NULL ;
126
126
OSStatus status = SecItemCopyMatching ((__bridge CFDictionaryRef )dictionary, (CFTypeRef *)&valueData);
127
+ if (status == errSecItemNotFound) {
128
+ return nil ;
129
+ }
127
130
if (status) {
128
131
NSError *localError = [self errorWithKey: key OSStatus: status];
129
132
BNCLogDebugSDK (@" Can't retrieve key: %@ ." , localError);
Original file line number Diff line number Diff line change @@ -353,7 +353,10 @@ - (NSError*_Nullable) setStatus:(XGPullRequestStatus)status
353
353
error = [NSError errorWithDomain: NSNetServicesErrorDomain
354
354
code: NSNetServicesInvalidError userInfo: @{NSLocalizedDescriptionKey :
355
355
[NSString stringWithFormat: @" HTTP Status %ld " , (long ) operation.HTTPStatusCode]}];
356
- BNCLogError (@" Response was: %@ ." , [operation stringFromResponseData ]);
356
+ BNCLogError (
357
+ @" Can't access GitHub status. Is write access enabled and the token set?\n Response was: %@ ." ,
358
+ [operation stringFromResponseData ]
359
+ );
357
360
return error;
358
361
}
359
362
return error;
You can’t perform that action at this time.
0 commit comments