From: Alex Riesen Date: Wed, 29 Apr 2009 21:24:52 +0000 (+0200) Subject: print unlink(2) errno in copy_or_link_directory X-Git-Tag: v1.6.3.2~19^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6a5f1bb509a3af182fe568135398f1f2be15e5d;p=git.git print unlink(2) errno in copy_or_link_directory Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- diff --git a/builtin-clone.c b/builtin-clone.c index 880373f27..ba286e016 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;