aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-04-09 10:16:06 +0200
committerPhilipp Hagemeister <[email protected]>2014-04-09 10:16:06 +0200
commitf983c4419941adfeaa42164d06d2e5e80c31f921 (patch)
tree671a841838592027b1e8bc7e08787b98d3129eac
parentc47d21da80c0a616410ca6c0d61d7ccfed36e943 (diff)
parente4db19511af41d4336390b1a59d6d3a1b0e0ae60 (diff)
downloadyoutube-dl-f983c4419941adfeaa42164d06d2e5e80c31f921.tar.gz
youtube-dl-f983c4419941adfeaa42164d06d2e5e80c31f921.zip
Merge pull request #2725 from foolscap/subtitles-error-fix
Fix subtitle download error reporting (Fixes #2724)
-rwxr-xr-x[-rw-r--r--]youtube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index bd7497f85..d4dd05d8c 100644..100755
--- 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)
return
if self.params.get('writeinfojson', False):