X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=hash-object.c;h=9455dd0709aeb81436ef2e3e36422578d66ce8e7;hb=907a0b1e04ea31cb368e9422df93d8ebb0187914;hp=47cf43c3cdd2bcd7638360a130fc8ef04ce132e9;hpb=916e1373fb86db9d7019de4e7e74e39c9474a153;p=git.git diff --git a/hash-object.c b/hash-object.c index 47cf43c3c..9455dd070 100644 --- a/hash-object.c +++ b/hash-object.c @@ -29,7 +29,7 @@ static void hash_object(const char *path, const char *type, int write_object, int fd; fd = open(path, O_RDONLY); if (fd < 0) - die("Cannot open %s", path); + die_errno("Cannot open '%s'", path); hash_fd(fd, type, write_object, vpath); }