summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlosmn@github.com>2017-01-13 17:05:58 +0100
committerGitHub <noreply@github.com>2017-01-13 17:05:58 +0100
commita6d833a29e100cae66d5144367e9102d093d4dbd (patch)
treee57dce696483b3c166535e75aefe0feedad6b0d8 /src/object.c
parentffe259d9e52a472b172d9834ed44a98fd1ce4d1a (diff)
parent8f0d5cdef9e2cb53c2f455d0a449f25c87647811 (diff)
downloadlibgit2-a6d833a29e100cae66d5144367e9102d093d4dbd.tar.gz
Merge pull request #4049 from libgit2/ethomson/error_msgs
giterr_set: consistent error messages
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/object.c b/src/object.c
index 1d45f9f1b..2da36a2ee 100644
--- a/src/object.c
+++ b/src/object.c
@@ -66,12 +66,12 @@ int git_object__from_odb_object(
/* Validate type match */
if (type != GIT_OBJ_ANY && type != odb_obj->cached.type) {
giterr_set(GITERR_INVALID,
- "The requested type does not match the type in the ODB");
+ "the requested type does not match the type in the ODB");
return GIT_ENOTFOUND;
}
if ((object_size = git_object__size(odb_obj->cached.type)) == 0) {
- giterr_set(GITERR_INVALID, "The requested type is invalid");
+ giterr_set(GITERR_INVALID, "the requested type is invalid");
return GIT_ENOTFOUND;
}
@@ -122,7 +122,7 @@ int git_object_lookup_prefix(
assert(repo && object_out && id);
if (len < GIT_OID_MINPREFIXLEN) {
- giterr_set(GITERR_OBJECT, "Ambiguous lookup - OID prefix is too short");
+ giterr_set(GITERR_OBJECT, "ambiguous lookup - OID prefix is too short");
return GIT_EAMBIGUOUS;
}
@@ -147,7 +147,7 @@ int git_object_lookup_prefix(
if (type != GIT_OBJ_ANY && type != object->cached.type) {
git_object_free(object);
giterr_set(GITERR_INVALID,
- "The requested type does not match the type in ODB");
+ "the requested type does not match the type in ODB");
return GIT_ENOTFOUND;
}
@@ -292,7 +292,7 @@ static int peel_error(int error, const git_oid *oid, git_otype type)
git_oid_fmt(hex_oid, oid);
hex_oid[GIT_OID_HEXSZ] = '\0';
- giterr_set(GITERR_OBJECT, "The git_object of id '%s' can not be "
+ giterr_set(GITERR_OBJECT, "the git_object of id '%s' can not be "
"successfully peeled into a %s (git_otype=%i).", hex_oid, type_name, type);
return error;