From 4efba05c56cda1cfe036b6ad8a4e8fc55cc21d4d Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 8 Aug 2013 08:55:26 +0200 Subject: [PATCH] Clarify template error message (#1209) --- youtube_dl/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.22.2