diff options
author | Benno Schulenberg <bensberg@justemail.net> | 2013-01-04 22:45:34 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-02-06 15:57:34 +0000 |
commit | a1ee5cd714c0825b0244d09bbaa0a61c883ac18f (patch) | |
tree | b5b0308b264b9be73dbeb1723bef30b00ab69545 /src/head.c | |
parent | 6a404ec16555bc0757ff06d99af96c12bfbc235e (diff) | |
download | coreutils-a1ee5cd714c0825b0244d09bbaa0a61c883ac18f.tar.xz |
maint: improve error messages upon failed read, write, access, close
Note we use "failed to {access,close}" for those single operations,
and "error {read,writ}ing" for those partial operation failures.
* src/copy.c: Improve error messages for failing read, write and close.
* src/cp.c: Improve error messages for failing access.
* src/dd.c: Improve error messages for failing read, write and open.
* src/head.c: Improve error message for failing close.
* src/install.c: Improve error messages for failing access.
* src/ln.c: Likewise.
* src/mv.c: Likewise.
* src/touch.c: Improve error message for failing close.
* src/truncate.c: Likewise.
Diffstat (limited to 'src/head.c')
-rw-r--r-- | src/head.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/head.c b/src/head.c index 306c1b884..d79d5f7de 100644 --- a/src/head.c +++ b/src/head.c @@ -859,7 +859,7 @@ head_file (const char *filename, uintmax_t n_units, bool count_lines, ok = head (filename, fd, n_units, count_lines, elide_from_end); if (!is_stdin && close (fd) != 0) { - error (0, errno, _("closing %s"), quote (filename)); + error (0, errno, _("failed to close %s"), quote (filename)); return false; } return ok; |