Print localizedFailureReason for autoUpdater errors

This is to help solve #1292.
This commit is contained in:
Cheng Zhao 2015-03-25 21:19:18 +08:00
parent a9301ea1d0
commit 1804466334

View file

@ -94,7 +94,9 @@ void AutoUpdater::CheckForUpdates() {
delegate->OnUpdateNotAvailable();
}
} error:^(NSError *error) {
delegate->OnError(base::SysNSStringToUTF8(error.localizedDescription));
delegate->OnError(base::SysNSStringToUTF8(
[NSString stringWithFormat:@"%@: %@",
error.localizedDescription, error.localizedFailureReason]));
}];
}