commit 4efba05c56cda1cfe036b6ad8a4e8fc55cc21d4d parent 526e638c8ae750f19bd8b79dc1fef7ad12675487 Author: Philipp Hagemeister <phihag@phihag.de> Date: Thu, 8 Aug 2013 08:55:26 +0200 Clarify template error message (#1209) Diffstat:
M | youtube_dl/YoutubeDL.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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):