Commit dea5ce3df6f62a490b3307edd06958eddc5e90f4

Edward Thomson 2020-01-15T17:30:59

Merge pull request #5359 from tniessen/make-type-mismatch-errors-consistent Make type mismatch errors consistent

diff --git a/src/commit.c b/src/commit.c
index aca65ff..cf9902d 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -753,7 +753,7 @@ int git_commit_extract_signature(git_buf *signature, git_buf *signed_data, git_r
 		return error;
 
 	if (obj->cached.type != GIT_OBJECT_COMMIT) {
-		git_error_set(GIT_ERROR_INVALID, "the requested type does not match the type in ODB");
+		git_error_set(GIT_ERROR_INVALID, "the requested type does not match the type in the ODB");
 		error = GIT_ENOTFOUND;
 		goto cleanup;
 	}
diff --git a/src/object.c b/src/object.c
index 8559de1..1b47ab1 100644
--- a/src/object.c
+++ b/src/object.c
@@ -201,7 +201,7 @@ int git_object_lookup_prefix(
 				if (type != GIT_OBJECT_ANY && type != object->cached.type) {
 					git_object_free(object);
 					git_error_set(GIT_ERROR_INVALID,
-						"the requested type does not match the type in ODB");
+						"the requested type does not match the type in the ODB");
 					return GIT_ENOTFOUND;
 				}