copy: include both src and dest names in clone failure diagnostic

* src/copy.c (copy_reg): Upon btrfs clone failure, print not just
the destination file name, but also the source file name.
That may be useful upon failure of a cross-device clone attempt.
This commit is contained in:
Jeff Liu authored and Jim Meyering committed 2011-04-25 10:58:57 +02:00
1 parent 0e6c96e68c
commit 32eb31999f
1 file changed
+2 -1
+2 -1
View File
@@ -974,7 +974,8 @@ copy_reg (char const *src_name, char const *dst_name,
{
if (!clone_ok)
{
error (0, errno, _("failed to clone %s"), quote (dst_name));
error (0, errno, _("failed to clone %s from %s"),
quote (dst_name), quote (src_name));
return_val = false;
goto close_src_and_dst_desc;
}