mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Print friendly error messages in sparkle-cli
This commit is contained in:
1 parent
346f996942
commit
72d63f3992
1 file changed
+2
-2
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user