From 176a548b99cae1375cf2a43ba5ffcd806500eec7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 29 Oct 2016 20:23:49 +0530 Subject: [PATCH] ... --- kitty/shaders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/shaders.py b/kitty/shaders.py index 1172517ad..56063cbe4 100644 --- a/kitty/shaders.py +++ b/kitty/shaders.py @@ -199,7 +199,7 @@ class ShaderProgram: gl.glCompileShader(shader_id) if gl.glGetShaderiv(shader_id, gl.GL_COMPILE_STATUS) != gl.GL_TRUE: info = gl.glGetShaderInfoLog(shader_id) - raise ValueError('GLSL Shader compilation failed: \n%s' % info.decode('utf-8')) + raise ValueError('GLSL {} compilation failed: \n{}'.format(shader_type, info.decode('utf-8'))) return shader_id except Exception: gl.glDeleteShader(shader_id)