Commit 0b44c06599a446edb7523a9eead207817798111b

nulltoken 2012-01-17T14:35:04

repository: add the invalid repository path to the error message

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/repository.c b/src/repository.c
index a408599..67bfcc9 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -169,7 +169,7 @@ int git_repository_open(git_repository **repo_out, const char *path)
 
 	if (quickcheck_repository_dir(&path_buf) < GIT_SUCCESS) {
 		error = git__throw(GIT_ENOTAREPO,
-			"The given path is not a valid Git repository");
+			"The given path (%s) is not a valid Git repository", git_buf_cstr(&path_buf));
 		goto cleanup;
 	}