Print friendly error messages in sparkle-cli

This commit is contained in:
Zorg committed 2016-05-18 18:51:47 -04:00
1 parent 346f996942
commit 72d63f3992
1 file changed
+2 -2
+2 -2
View File
@@ -156,7 +156,7 @@
{
dispatch_async(dispatch_get_main_queue(), ^{
if (self.verbose) {
fprintf(stderr, "Error: Unable to download release notes: %s\n", error.description.UTF8String);
fprintf(stderr, "Error: Unable to download release notes: %s\n", error.localizedDescription.UTF8String);
}
});
}
@@ -174,7 +174,7 @@
- (void)showUpdaterError:(NSError *)error acknowledgement:(void (^)(void))__unused acknowledgement
{
dispatch_async(dispatch_get_main_queue(), ^{
fprintf(stderr, "Error: Update has failed: %s\n", error.description.UTF8String);
fprintf(stderr, "Error: Update has failed: %s\n", error.localizedDescription.UTF8String);
exit(EXIT_FAILURE);
});
}