]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Print a more accurate error message when we fail to create a lock file.
authorSteven Grimm <koreth@midwinter.com>
Sat, 6 Jan 2007 03:14:04 +0000 (19:14 -0800)
committerJunio C Hamano <junkio@cox.net>
Sat, 6 Jan 2007 18:42:49 +0000 (10:42 -0800)
Signed-off-by: Steven Grimm <koreth@midwinter.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
lockfile.c

index 731bbf3c9c312687714d19391e6e02ffde8eaebd..4824f4dc026e7b3f978fe4e9b2154335359e9d2e 100644 (file)
@@ -49,7 +49,7 @@ int hold_lock_file_for_update(struct lock_file *lk, const char *path, int die_on
 {
        int fd = lock_file(lk, path);
        if (fd < 0 && die_on_error)
-               die("unable to create '%s': %s", path, strerror(errno));
+               die("unable to create '%s.lock': %s", path, strerror(errno));
        return fd;
 }