Skip to content

A feature-rich command-line audio/video downloader

[http] Show the last encountered error Closes #1262

pukkandand5a39f0badbf
diff --git a/yt_dlp/downloader/http.py b/yt_dlp/downloader/http.py
index 3bc41e5b22..2e95bb9d10 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