Skip to content

Commit

Permalink
Include the error message on URLError
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Apr 7, 2014
1 parent 4ae23a0 commit 575ac7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def fetch_repodata(url, cache_dir=None, use_cache=False):
if e.code != 304:
raise RuntimeError(msg)

except urllib2.URLError:
sys.stderr.write("Error: unknown host: %s\n" % url)
except urllib2.URLError as e:
sys.stderr.write("Error: unknown host: %s (%r)\n" % (url, e))
if fail_unknown_host:
sys.exit(1)

Expand Down

0 comments on commit 575ac7f

Please sign in to comment.