mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
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:
1 parent
9d1e707577
commit
c9c1de30e4
2 files changed
+1
-11
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user