mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-18 18:30:29 +00:00
minor missing error message
This commit is contained in:
parent
bf6bebe22e
commit
1a9e406c21
@ -1598,6 +1598,7 @@ int git_repository_message(char *buffer, size_t len, git_repository *repo)
|
||||
if ((error = p_stat(git_buf_cstr(&path), &st)) < 0) {
|
||||
if (errno == ENOENT)
|
||||
error = GIT_ENOTFOUND;
|
||||
giterr_set(GITERR_OS, "Could not access message file");
|
||||
}
|
||||
else if (buffer != NULL) {
|
||||
error = git_futils_readbuffer(&buf, git_buf_cstr(&path));
|
||||
|
Loading…
Reference in New Issue
Block a user