Merge pull request #5371 from adambuckland/fix_auto_update_error
Fix autoUpdater error on OS X
This commit is contained in:
commit
8957ba5222
1 changed files with 8 additions and 3 deletions
|
@ -90,9 +90,14 @@ void AutoUpdater::CheckForUpdates() {
|
|||
delegate->OnUpdateNotAvailable();
|
||||
}
|
||||
} error:^(NSError *error) {
|
||||
delegate->OnError(base::SysNSStringToUTF8(
|
||||
[NSString stringWithFormat:@"%@: %@",
|
||||
error.localizedDescription, error.localizedFailureReason]));
|
||||
NSString *failureString;
|
||||
if(error.localizedFailureReason) {
|
||||
failureString = [NSString stringWithFormat:@"%@: %@",
|
||||
error.localizedDescription, error.localizedFailureReason];
|
||||
} else {
|
||||
failureString = [NSString stringWithString: error.localizedDescription];
|
||||
}
|
||||
delegate->OnError(base::SysNSStringToUTF8(failureString));
|
||||
}];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue