diff --git a/lib/generator.py b/lib/generator.py index 8e1702a7..b764ccd8 100755 --- a/lib/generator.py +++ b/lib/generator.py @@ -290,7 +290,8 @@ def download_file(self, url, directory, file_name): with open(abs_file_name, 'wb') as target_file: target_file.write(response.raw.read()) else: - raise requests.HTTPError("Download failed.") + raise requests.HTTPError("Download failed: HTTP " + + response.status_code + " " + response.reason) return abs_file_name def get_packages(self):