diff options
author | Sami Kerola | 2014-12-07 11:13:03 +0100 |
---|---|---|
committer | Karel Zak | 2014-12-09 09:19:22 +0100 |
commit | 338a6bc55b277598fb9e63a42f442d026b255e59 (patch) | |
tree | ab1d173f7706858e7803653fe4a5571f0106f661 /disk-utils/mkfs.c | |
parent | login-utils: use libc error printing facility (diff) | |
download | kernel-qcow2-util-linux-338a6bc55b277598fb9e63a42f442d026b255e59.tar.gz kernel-qcow2-util-linux-338a6bc55b277598fb9e63a42f442d026b255e59.tar.xz kernel-qcow2-util-linux-338a6bc55b277598fb9e63a42f442d026b255e59.zip |
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 <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/mkfs.c')
-rw-r--r-- | disk-utils/mkfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |