Git development
 help / color / mirror / Atom feed
* [PATCH] print unlink(2) errno in copy_or_link_directory
@ 2009-04-29 21:24 Alex Riesen
  0 siblings, 0 replies; only message in thread
From: Alex Riesen @ 2009-04-29 21:24 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano


Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 builtin-clone.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/builtin-clone.c b/builtin-clone.c
index 880373f..ba286e0 100644
--- a/builtin-clone.c
+++ b/builtin-clone.c
@@ -228,7 +228,8 @@ static void copy_or_link_directory(struct strbuf *src, struct strbuf *dest)
 		}
 
 		if (unlink(dest->buf) && errno != ENOENT)
-			die("failed to unlink %s", dest->buf);
+			die("failed to unlink %s: %s",
+			    dest->buf, strerror(errno));
 		if (!option_no_hardlinks) {
 			if (!link(src->buf, dest->buf))
 				continue;
-- 
1.6.3.rc3.39.g49fd5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-29 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29 21:24 [PATCH] print unlink(2) errno in copy_or_link_directory Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox