From 338a6bc55b277598fb9e63a42f442d026b255e59 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 7 Dec 2014 10:13:03 +0000 Subject: textual: improve error messages Use error printing facilities that add command name in front of the error message, and add explanation that is part of existing translations. Signed-off-by: Sami Kerola --- disk-utils/mkfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'disk-utils/mkfs.c') diff --git a/disk-utils/mkfs.c b/disk-utils/mkfs.c index dbc938f1a..8ad606531 100644 --- a/disk-utils/mkfs.c +++ b/disk-utils/mkfs.c @@ -147,6 +147,5 @@ int main(int argc, char **argv) /* Execute the program */ execvp(progname, argv + optind); - perror(progname); - return EXIT_FAILURE; + err(EXIT_FAILURE, _("failed to execute %s"), progname); } -- cgit v1.2.3-55-g7522