@matheusbsbs / matheus-bagliano / commits / f9e8a43a00
Fork 0

Print a more accurate error message when we fail to create a lock file.

Signed-off-by: Steven Grimm <koreth@midwinter.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Steven Grimm committed Jan 5, 2007 at 19:14 UTC f9e8a43a007e81b564516576550a505967389942
1 file changed +1 -1
lockfile.c
+1 -1
@@ -49,7 +49,7 @@ int hold_lock_file_for_update(struct lock_file *lk, const char *path, int die_on
49 {
50 int fd = lock_file(lk, path);
51 if (fd < 0 && die_on_error)
52 - die("unable to create '%s': %s", path, strerror(errno));
52 + die("unable to create '%s.lock': %s", path, strerror(errno));
53 return fd;
54 }
55