diff options
-rw-r--r-- | lib/spack/spack/fetch_strategy.py | 1 | ||||
-rw-r--r-- | lib/spack/spack/util/web.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py index ae23bacf14..5ed46c3278 100644 --- a/lib/spack/spack/fetch_strategy.py +++ b/lib/spack/spack/fetch_strategy.py @@ -338,6 +338,7 @@ class URLFetchStrategy(FetchStrategy): errors = [] for url in self.candidate_urls: if not web_util.url_exists(url, self.curl): + tty.debug("URL does not exist: " + url) continue try: diff --git a/lib/spack/spack/util/web.py b/lib/spack/spack/util/web.py index 202cb8a504..fa4119f917 100644 --- a/lib/spack/spack/util/web.py +++ b/lib/spack/spack/util/web.py @@ -444,7 +444,8 @@ def url_exists(url, curl=None): try: read_from_url(url) return True - except (SpackWebError, URLError): + except (SpackWebError, URLError) as e: + tty.debug("Failure reading URL: " + str(e)) return False |