From 64c59c92679877c58ba341ef6fb37b579af7cbbd Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 6 Jul 2020 14:53:17 +0000 Subject: [PATCH] better assert message git-svn-id: https://xpra.org/svn/Xpra/trunk@26900 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/client/window_backing_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xpra/client/window_backing_base.py b/src/xpra/client/window_backing_base.py index 9f686382f6..40b1fb3095 100644 --- a/src/xpra/client/window_backing_base.py +++ b/src/xpra/client/window_backing_base.py @@ -521,7 +521,8 @@ def paint_with_video_decoder(self, decoder_module, coding, img_data, x, y, width return #do we need a prep step for decoders that cannot handle the input_colorspace directly? decoder_colorspaces = decoder_module.get_input_colorspaces(coding) - assert input_colorspace in decoder_colorspaces, "decoder does not support %s for %s" % (input_colorspace, coding) + assert input_colorspace in decoder_colorspaces, "decoder %s does not support %s for %s" % ( + decoder_module.get_type(), input_colorspace, coding) vd = self._video_decoder if vd: