More informative error
authoruser <nobody>
Tue, 6 Aug 2013 02:43:09 +0000 (19:43 -0700)
committeruser <nobody>
Tue, 6 Aug 2013 02:43:09 +0000 (19:43 -0700)
youtube_dl/YoutubeDL.py

index 4968669002a8edd0297a5cc3ba1ddddd3d59df49..b510831542d8e9ee68194a9fe3120ecf108dc142 100644 (file)
@@ -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