diff options
author | Tobias Nießen <tniessen@tnie.de> | 2020-01-15 12:58:59 -0400 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2020-01-15 12:58:59 -0400 |
commit | 5e1b6eaff1f3d84146bd966dbd2b6b20ad70fab9 (patch) | |
tree | 65b2afb594336ac06ce02658b0c4cb4bb7a2f394 | |
parent | cc4f4cbea48ac00a5edec1b3570ac3d2ef10fe77 (diff) | |
download | libgit2-5e1b6eaff1f3d84146bd966dbd2b6b20ad70fab9.tar.gz |
Make type mismatch errors consistent
-rw-r--r-- | src/commit.c | 2 | ||||
-rw-r--r-- | src/object.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commit.c b/src/commit.c index aca65ff2d..cf9902d02 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 8559de1c6..1b47ab1a6 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; } |