Skip to content

Commit 14f10c0

Browse files
einarfCopilot
andauthored
Update arcade/gl/backends/opengl/context.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f8887c0 commit 14f10c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arcade/gl/backends/opengl/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def blend_func(self, value: Tuple[int, int] | Tuple[int, int, int, int]):
143143
elif len(value) == 4:
144144
gl.glBlendFuncSeparate(*value)
145145
else:
146-
raise ValueError("blend_func takes a tuple of 2 or 4 values")
146+
raise ValueError(f"blend_func takes a tuple of 2 or 4 values, got {len(value)}")
147147

148148
@property
149149
def front_face(self) -> str:

0 commit comments

Comments
 (0)