aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-10-14 14:40:37 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-10-14 14:44:28 +0530
commitd5a39f0badbf6155eeed5c03d14489227fc9dab2 (patch)
treeffb31ba73450237a7739d4e9f42fb46306aba502
parenta64907d0ac89102c9380361e385fc67167595661 (diff)
downloadhypervideo-pre-d5a39f0badbf6155eeed5c03d14489227fc9dab2.tar.lz
hypervideo-pre-d5a39f0badbf6155eeed5c03d14489227fc9dab2.tar.xz
hypervideo-pre-d5a39f0badbf6155eeed5c03d14489227fc9dab2.zip
[http] Show the last encountered error
Closes #1262
-rw-r--r--yt_dlp/downloader/http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/downloader/http.py b/yt_dlp/downloader/http.py
index 3bc41e5b2..2e95bb9d1 100644
--- a/yt_dlp/downloader/http.py
+++ b/yt_dlp/downloader/http.py
@@ -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