add onError with three params and move to atom-auto-updater
This commit is contained in:
parent
1cfd20f861
commit
8cf00fece6
4 changed files with 20 additions and 65 deletions
|
@ -104,8 +104,7 @@ void AutoUpdater::CheckForUpdates() {
|
|||
delegate->OnUpdateNotAvailable();
|
||||
}
|
||||
} error:^(NSError *error) {
|
||||
NSMutableString *failureString =
|
||||
[[NSString stringWithFormat:@"%@:%@:%@", error.code, error.domain, error.localizedDescription] mutableCopy];
|
||||
NSMutableString *failureString = [NSMutableString stringWithString:error.localizedDescription];
|
||||
if (error.localizedFailureReason) {
|
||||
[failureString appendString:@": "];
|
||||
[failureString appendString:error.localizedFailureReason];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue