Skip to content

Commit

Permalink
docs: provide hex color code example in error message scidsg#573
Browse files Browse the repository at this point in the history
Suggested in review:
scidsg#573 (comment)

For Roadmap Item scidsg#533

Co-authored-by: brassy endomorph <brassy-endomorph@riseup.net>
  • Loading branch information
rmlibre and brassy-endomorph committed Sep 18, 2024
1 parent 416db1b commit 2cf9518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hushline/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class HexColor:
def __call__(self, form: Form, field: Field) -> None:
color: str = field.data
if not self.hex_color_regex.match(color):
raise ValidationError(f"{color=} is an invalid 6-hexit color code.")
raise ValidationError(f"{color=} is an invalid 6-hexit color code. (eg. #7d25c1)")


class CanonicalHTML:
Expand Down

0 comments on commit 2cf9518

Please sign in to comment.