[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
1 changed files with 2 additions and 0 deletions

View File

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