summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@justemail.net>2010-06-26 12:00:42 +0200
committerJim Meyering <meyering@redhat.com>2010-06-27 08:47:24 +0200
commit825a92240e3a691ae5f95401a35f24f804a0b260 (patch)
treea473bb7122954e6b39caa3c9f23f732a7680142b
parent13f323786c0317347b448ae365fec95856dc0b8d (diff)
downloadcoreutils-825a92240e3a691ae5f95401a35f24f804a0b260.tar.xz
ln: print a clearer error message when linking fails
-rw-r--r--src/ln.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ln.c b/src/ln.c
index 8612afef4..672964c2d 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -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)