diff options
| author | Allan Zhou <allanzp@gmail.com> | 2013-08-19 17:11:52 -0700 | 
|---|---|---|
| committer | Allan Zhou <allanzp@gmail.com> | 2013-08-19 17:11:52 -0700 | 
| commit | 90d3989b99c7a9446089ea635ca288216625d44c (patch) | |
| tree | 5ae78d1cc8de87eaf361aea5fd069b84d3154fd7 /youtube_dl/YoutubeDL.py | |
| parent | 95fdc7d69cec1381382cea33f0e4e06c8045486d (diff) | |
| parent | d741e55a423a09c40b3c5e19551f432a050353d7 (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
| -rw-r--r-- | youtube_dl/YoutubeDL.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 496866900..d1618da79 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -264,7 +264,7 @@ class YoutubeDL(object):              self.report_error(u'Erroneous output template')              return None          except ValueError as err: -            self.report_error(u'Insufficient system charset ' + repr(preferredencoding())) +            self.report_error(u'Error in output template: ' + str(err) + u' (encoding: ' + repr(preferredencoding()) + ')')              return None      def _match_entry(self, info_dict): @@ -547,7 +547,7 @@ class YoutubeDL(object):                  try:                      success = self.fd._do_download(filename, info_dict)                  except (OSError, IOError) as err: -                    raise UnavailableVideoError() +                    raise UnavailableVideoError(err)                  except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:                      self.report_error(u'unable to download video data: %s' % str(err))                      return | 
