diff options
author | Phil Jones <philj56@gmail.com> | 2022-07-30 08:15:29 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-07-30 08:15:29 +0100 |
commit | 87757b4f0fe9dad041546d0c86a83d918c0aae92 (patch) | |
tree | 9ee69ffa3c3aa9cec0b2cfcab19312a5c1f8bb50 /src/color.c | |
parent | 5555d79d699306e114897ea637f5e38271e1535e (diff) |
Improve error message for invalid colours.
Diffstat (limited to 'src/color.c')
-rw-r--r-- | src/color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/color.c b/src/color.c index 0ccd5b8..3fd9516 100644 --- a/src/color.c +++ b/src/color.c @@ -36,7 +36,7 @@ struct color hex_to_color(const char *hex) } else if (len == 8) { val = strtol(hex, NULL, 16); } else { - log_error("Invalid hex color %s\n", hex); + return (struct color) { -1, -1, -1, -1 }; } return (struct color) { |