Merge branch 'jc/t2300-setup' into HEAD
[gitweb.git] / builtin / worktree.c
index 12c0af723e69b87c07cc152824fb2cff6930ee66..96a2834a18be8ee03427cfdd408914ea71d59243 100644 (file)
@@ -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)