1
0
mirror of https://gitlab.com/ytdl-org/youtube-dl.git synced 2026-04-05 00:00:03 -04:00

[xattr] Enhanced error messages on Windows

This commit is contained in:
Yen Chi Hsuan
2015-05-14 16:53:10 +08:00
parent fbff30d2db
commit c827d4cfdb
+6 -3
View File
@@ -167,7 +167,10 @@ class XAttrMetadataPP(PostProcessor):
self._downloader.report_warning(
'Unable to write extended attributes due to too long values.')
else:
self._downloader.report_error(
'This filesystem doesn\'t support extended attributes. ' +
'(You may have to enable them in your /etc/fstab)')
msg = 'This filesystem doesn\'t support extended attributes. '
if os.name == 'nt':
msg += 'You need to use NTFS.'
else:
msg += '(You may have to enable them in your /etc/fstab)'
self._downloader.report_error(msg)
return [], info