Browse Source

Print localizedFailureReason for autoUpdater errors

This is to help solve #1292.
Cheng Zhao 10 years ago
parent
commit
1804466334
1 changed files with 3 additions and 1 deletions
  1. 3 1
      atom/browser/auto_updater_mac.mm

+ 3 - 1
atom/browser/auto_updater_mac.mm

@@ -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]));
       }];
 }