A feature-rich command-line audio/video downloader
Fix subtitle download error reporting (Fixes #2724)
robbiee4db19511af4
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.pyold mode 100644new mode 100755index bd7497f857..d4dd05d8c8--- a/youtube_dl/YoutubeDL.py+++ b/youtube_dl/YoutubeDL.py@@ -936,7 +936,7 @@ class YoutubeDL(object):with io.open(encodeFilename(sub_filename), 'w', encoding='utf-8') as subfile:subfile.write(sub)except (OSError, IOError):- self.report_error('Cannot write subtitles file ' + descfn)+ self.report_error('Cannot write subtitles file ' + sub_filename)returnif self.params.get('writeinfojson', False):