bootstrap: log caught URLError

This enables us to get more of a message than just "Download failed.",
possibly helping people help themselves to get the download going.

References #8417
This commit is contained in:
Jan Ekström 2020-12-22 19:05:59 +02:00
parent fa903f3eeb
commit 40ea28c6f9
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ for WAFURL in WAFURLS:
print("Downloading {}...".format(WAFURL))
waf = urlopen(WAFURL).read()
break
except URLError:
print("Download failed.")
except URLError as err:
print("Download failed! ({})".format(err))
if not waf:
print("Could not download {}.".format(WAFRELEASE))