]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setterm: improve "bright %s" error message
authorKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2024 09:35:18 +0000 (10:35 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2024 09:35:18 +0000 (10:35 +0100)
Addresses: https://github.com/util-linux/util-linux/pull/3312
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/setterm.c

index d9f9b450205ce5ae06c5d29846e1fc9917c88838..53bc6785d80ddc75e8a48b5acc3fca92787e878d 100644 (file)
@@ -235,7 +235,7 @@ static int parse_ulhb_color(char **av, int *oi)
        if (!is_valid_color(color) || color == DEFAULT)
                errx(EXIT_FAILURE, "%s: %s", _("argument error"), color_name);
        if (bright && (color == BLACK || color == GREY))
-               errx(EXIT_FAILURE, _("argument error: bright %s is not supported"), color_name);
+               errx(EXIT_FAILURE, _("argument error: bright color %s is not supported"), color_name);
 
        if (bright)
                color |= 8;