From: Philipp Hagemeister Date: Thu, 8 Aug 2013 06:55:26 +0000 (+0200) Subject: Clarify template error message (#1209) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=4efba05c56cda1cfe036b6ad8a4e8fc55cc21d4d;p=youtube-dl Clarify template error message (#1209) --- diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 496866900..3df653c5d 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):