[PATCH 14/17] setterm: improve error messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reuse messages to make translation work easier.

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 term-utils/setterm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/term-utils/setterm.c b/term-utils/setterm.c
index 2a0162e..2b1901f 100644
--- a/term-utils/setterm.c
+++ b/term-utils/setterm.c
@@ -262,7 +262,7 @@ static int parse_ulhb_color(char **argv, int *optind)
 	else {
 		color = strtoint_or_err(color_name);
 		if (color < BLACK || DEFAULT < color)
-			errx(EXIT_FAILURE, _("argument error"));
+			errx(EXIT_FAILURE, _("argument error: %s"), color_name);
 	}
 	if (bright && (color == BLACK || color == GREY))
 		errx(EXIT_FAILURE, _("argument error: bright %s is not supported"), color_name);
@@ -720,7 +720,7 @@ static void show_tabs(void)
 
 static void __attribute__((__noreturn__)) read_error(struct setterm_control *ctl)
 {
-	err(EXIT_DUMPFILE, _("Couldn't read %s"), ctl->in_device);
+	err(EXIT_DUMPFILE, _("cannot read %s"), ctl->in_device);
 }
 
 static int open_snapshot_device(struct setterm_control *ctl)
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux