Bug 1360498 - Added update snippet URL to failure in case of network issue
MozReview-Commit-ID: Hs9DR7z8aGS
--- 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
"""