From 40ea28c6f9f2f62270c1d07e4d79109d0a2d6b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Tue, 22 Dec 2020 19:05:59 +0200 Subject: 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 --- bootstrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstrap.py') diff --git a/bootstrap.py b/bootstrap.py index 2d9e8b4294..51b81f5e8e 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -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)) -- cgit v1.2.3