mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
More verbose error message on HTTP errors
This commit is contained in:
parent
55d3c36e09
commit
32dc4c702b
1 changed files with 2 additions and 1 deletions
|
|
@ -293,7 +293,8 @@ this script the next time")
|
|||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue