mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-25 12:20:20 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user