Improve error messages

This commit is contained in:
Sina Atalay
2025-02-12 14:27:25 -05:00
parent 7a7aeec004
commit 546ae1eae9

View File

@@ -182,6 +182,10 @@ def parse_validation_errors(
"Input should be a valid list": (
"This field should contain a list of items but it doesn't!"
),
"value is not a valid color: value must be tuple, list or string": (
"This is not a valid color! Here are some examples of valid colors:"
' "red", "#ff0000", "rgb(255, 0, 0)", "hsl(0, 100%, 50%)"'
),
"value is not a valid color: string not recognised as a valid color": (
"This is not a valid color! Here are some examples of valid colors:"
' "red", "#ff0000", "rgb(255, 0, 0)", "hsl(0, 100%, 50%)"'