Skip to content

Commit

Permalink
Print a more accurate error message when we fail to create a lock file.
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Grimm <koreth@midwinter.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Steven Grimm authored and Junio C Hamano committed Jan 6, 2007
1 parent 1170e80 commit f9e8a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lockfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f9e8a43

Please sign in to comment.