Skip to content

Commit dea5ce3

Browse files
authored
Merge pull request libgit2#5359 from tniessen/make-type-mismatch-errors-consistent
Make type mismatch errors consistent
2 parents cc4f4cb + 5e1b6ea commit dea5ce3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ int git_commit_extract_signature(git_buf *signature, git_buf *signed_data, git_r
753753
return error;
754754

755755
if (obj->cached.type != GIT_OBJECT_COMMIT) {
756-
git_error_set(GIT_ERROR_INVALID, "the requested type does not match the type in ODB");
756+
git_error_set(GIT_ERROR_INVALID, "the requested type does not match the type in the ODB");
757757
error = GIT_ENOTFOUND;
758758
goto cleanup;
759759
}

src/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ int git_object_lookup_prefix(
201201
if (type != GIT_OBJECT_ANY && type != object->cached.type) {
202202
git_object_free(object);
203203
git_error_set(GIT_ERROR_INVALID,
204-
"the requested type does not match the type in ODB");
204+
"the requested type does not match the type in the ODB");
205205
return GIT_ENOTFOUND;
206206
}
207207

0 commit comments

Comments
 (0)