Don't implement failedToDownloadUpdate delegate

It's not necessary and won't be invoked before user driver shows the error.
This commit is contained in:
Zorg committed 2016-05-06 19:35:13 -04:00
1 parent 9d1e707577
commit c9c1de30e4
2 files changed
+1 -11

No files matched your search

-10
View File
@@ -80,16 +80,6 @@
}
}
- (void)updater:(SUUpdater *)__unused updater failedToDownloadUpdate:(SUAppcastItem *)__unused item error:(NSError *)error
{
if (self.probingForUpdates) {
if (self.verbose) {
fprintf(stderr, "Failed to download update with error (%ld): %s\n", (long)error.code, error.localizedDescription.UTF8String);
}
exit(EXIT_FAILURE);
}
}
- (void)updater:(SUUpdater *)__unused updater didAbortWithError:(NSError *)error
{
if (self.probingForUpdates) {
+1 -1
View File
@@ -142,7 +142,7 @@
- (void)showUpdaterError:(NSError *)error acknowledgement:(void (^)(void))__unused acknowledgement
{
dispatch_async(dispatch_get_main_queue(), ^{
fprintf(stderr, "Error: Update check has failed: %s\n", error.description.UTF8String);
fprintf(stderr, "Error: Update has failed: %s\n", error.description.UTF8String);
exit(EXIT_FAILURE);
});
}