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;
}