Skip to content

Commit c0ce0c3

Browse files
philipbergenpvcraven
authored andcommitted
Fix error message on text.draw_text:anchor_y (#1) (#321)
Fix error message on text.draw_text:anchor_y
1 parent 2dd6f53 commit c0ce0c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arcade/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def draw_text(text: str,
275275
elif anchor_y == "bottom" or anchor_y == "baseline":
276276
text_sprite.bottom = start_y
277277
else:
278-
raise ValueError(f"anchor_x should be 'left', 'center', or 'right'. Not '{anchor_y}'")
278+
raise ValueError(f"anchor_x should be 'top', 'center', 'bottom', or 'baseline'. Not '{anchor_y}'")
279279

280280
text_sprite.angle = rotation
281281

0 commit comments

Comments
 (0)