mirror of https://github.com/mpv-player/mpv
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:
parent
fa903f3eeb
commit
40ea28c6f9
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue