update-cache.c: 11388582a830a6161d1c769aa8616bed6f593b8a --- a/update-cache.c +++ b/update-cache.c @@ -98,6 +98,7 @@ static int add_file_to_cache(char *path) fd = open(path, O_RDONLY); if (fd < 0) { + fprintf(stderr, "update-cache Error: %s\n", strerror(errno)); if (errno == ENOENT) { if (allow_remove) return remove_file_from_cache(path);