diff options
author | Benno Schulenberg <bensberg@justemail.net> | 2010-06-26 12:00:42 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-06-27 08:47:24 +0200 |
commit | 825a92240e3a691ae5f95401a35f24f804a0b260 (patch) | |
tree | a473bb7122954e6b39caa3c9f23f732a7680142b | |
parent | 13f323786c0317347b448ae365fec95856dc0b8d (diff) | |
download | coreutils-825a92240e3a691ae5f95401a35f24f804a0b260.tar.xz |
ln: print a clearer error message when linking fails
-rw-r--r-- | src/ln.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -304,14 +304,14 @@ do_link (const char *source, const char *dest) error (0, errno, (symbolic_link ? (errno != ENAMETOOLONG && *source - ? _("creating symbolic link %s") - : _("creating symbolic link %s -> %s")) + ? _("failed to create symbolic link %s") + : _("failed to create symbolic link %s -> %s")) : (errno == EMLINK && !source_is_dir - ? _("creating hard link to %.0s%s") + ? _("failed to create hard link to %.0s%s") : (errno == EDQUOT || errno == EEXIST || errno == ENOSPC || errno == EROFS) - ? _("creating hard link %s") - : _("creating hard link %s => %s"))), + ? _("failed to create hard link %s") + : _("failed to create hard link %s => %s"))), quote_n (0, dest), quote_n (1, source)); if (dest_backup) |