add onError with three params and move to atom-auto-updater

This commit is contained in:
Shelley Vohr 2017-07-26 17:33:32 -07:00
parent 1cfd20f861
commit 8cf00fece6
4 changed files with 20 additions and 65 deletions

View file

@ -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];