Commit 1a9e406c218e3d5a174bc4f8dce0333d73d7bbff

Russell Belfer 2013-05-01T15:47:37

minor missing error message

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/repository.c b/src/repository.c
index e6eaf75..44e7ca3 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -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));