Improve error message regarding output templates and charsets
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Fri, 25 Jul 2008 21:43:00 +0000 (23:43 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:23:31 +0000 (11:23 +0100)
youtube-dl

index 7527a470442db2aca73cc9540a450b680b4983fe..48f5d2bf1aefd959e772e8e141fbaf9cdbbf7f01 100755 (executable)
@@ -267,7 +267,7 @@ class FileDownloader(object):
                                                filename = self._params['outtmpl'] % result
                                                self.report_destination(filename)
                                        except (ValueError, KeyError), err:
-                                               retcode = self.trouble('ERROR: invalid output template: %s' % str(err))
+                                               retcode = self.trouble('ERROR: invalid output template or system charset: %s' % str(err))
                                                continue
                                        try:
                                                self.pmkdir(filename)