Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/error-errno'
[gitweb.git]
/
builtin
/
worktree.c
diff --git
a/builtin/worktree.c
b/builtin/worktree.c
index d8e3795dc44a0dc047cac77af92282361227111a..331ecf6761d22d256398adeedccdd85edfacd2de 100644
(file)
--- a/
builtin/worktree.c
+++ b/
builtin/worktree.c
@@
-110,7
+110,7
@@
static void prune_worktrees(void)
if (ret < 0 && errno == ENOTDIR)
ret = unlink(path.buf);
if (ret)
- error
(_("failed to remove: %s"), strerror(errno)
);
+ error
_errno(_("failed to remove '%s'"), path.buf
);
}
closedir(dir);
if (!show_only)