prefix autoupdater error with statuscode and domain

This commit is contained in:
Shelley Vohr 2017-07-26 12:44:45 -07:00
parent 2467d91f27
commit 1cfd20f861
2 changed files with 65 additions and 2 deletions

View file

@ -104,8 +104,8 @@ void AutoUpdater::CheckForUpdates() {
delegate->OnUpdateNotAvailable();
}
} error:^(NSError *error) {
NSMutableString* failureString =
[NSMutableString stringWithString:error.localizedDescription];
NSMutableString *failureString =
[[NSString stringWithFormat:@"%@:%@:%@", error.code, error.domain, error.localizedDescription] mutableCopy];
if (error.localizedFailureReason) {
[failureString appendString:@": "];
[failureString appendString:error.localizedFailureReason];