[http] Show the last encountered error

Closes #1262
This commit is contained in:
pukkandan 2021-10-14 14:40:37 +05:30
parent a64907d0ac
commit d5a39f0bad
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -373,6 +373,8 @@ def retry(e):
count += 1 count += 1
if count <= retries: if count <= retries:
self.report_retry(e.source_error, count, retries) self.report_retry(e.source_error, count, retries)
else:
self.to_screen(f'[download] Got server HTTP error: {e.source_error}')
continue continue
except NextFragment: except NextFragment:
continue continue