Bug 1360498 - Added update snippet URL to failure in case of network issue draft
authorRaajit Raj <raajit.raj@gmail.com>
Tue, 27 Jun 2017 23:59:19 +0530
changeset 600679 c84b137e6fed54438100d47d0ce2d45392110264
parent 600642 4c4a88f08d7bd49377a15a86174bff43a3504c04
child 635058 4bdb4deb2317932d15d97acfb2c6b49638c1513a
push id65832
push userbmo:raajit.raj@gmail.com
push dateTue, 27 Jun 2017 18:29:51 +0000
bugs1360498
milestone56.0a1
Bug 1360498 - Added update snippet URL to failure in case of network issue MozReview-Commit-ID: Hs9DR7z8aGS
testing/marionette/puppeteer/firefox/firefox_puppeteer/api/software_update.py
--- a/testing/marionette/puppeteer/firefox/firefox_puppeteer/api/software_update.py
+++ b/testing/marionette/puppeteer/firefox/firefox_puppeteer/api/software_update.py
@@ -361,17 +361,18 @@ class SoftwareUpdate(BaseLib):
         :param update_url: URL to the update snippet
         """
         import urllib2
         try:
             response = urllib2.urlopen(update_url)
             return response.read()
         except urllib2.URLError:
             exc, val, tb = sys.exc_info()
-            raise Exception, "Failed to retrieve update snippet: {}".format(val), tb
+            raise Exception, "Failed to retrieve update snippet '{}': {}".format(
+                update_url, val), tb
 
     def get_formatted_update_url(self, force=False):
         """Retrieve the formatted AUS update URL the update snippet is retrieved from.
 
         :param force: Boolean flag to force an update check
 
         :returns: The URL of the update snippet
         """