summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-05-23 21:05:43 +0300
committerVicent Marti <tanoku@gmail.com>2011-05-23 21:05:43 +0300
commit6623f5c91b3b3bf0dcf3543ee7e25336162fd03c (patch)
tree373edcd63f655e82a83a0aac482f5cc0daf3e20a /src/object.c
parent75eb97fed0e3a4d9797dda081eccc858643c5fe4 (diff)
downloadlibgit2-6623f5c91b3b3bf0dcf3543ee7e25336162fd03c.tar.gz
object: Reword errors
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object.c b/src/object.c
index e4d9da044..d2e4da359 100644
--- a/src/object.c
+++ b/src/object.c
@@ -86,7 +86,7 @@ static int create_object(git_object **object_out, git_otype type)
break;
default:
- return git__throw(GIT_EINVALIDTYPE, "Failed to create object. Given type is invalid");
+ return git__throw(GIT_EINVALIDTYPE, "The given type is invalid");
}
object->type = type;
@@ -106,7 +106,7 @@ int git_object_lookup(git_object **object_out, git_repository *repo, const git_o
object = git_cache_get(&repo->objects, id);
if (object != NULL) {
if (type != GIT_OBJ_ANY && type != object->type)
- return git__throw(GIT_EINVALIDTYPE, "Failed to lookup object. Given type does not match found type");
+ return git__throw(GIT_EINVALIDTYPE, "Failed to lookup object. The given type does not match the type on the ODB");
*object_out = object;
return GIT_SUCCESS;
@@ -118,7 +118,7 @@ int git_object_lookup(git_object **object_out, git_repository *repo, const git_o
if (type != GIT_OBJ_ANY && type != odb_obj->raw.type) {
git_odb_object_close(odb_obj);
- return git__throw(GIT_EINVALIDTYPE, "Failed to lookup object. Given type does not match found type");
+ return git__throw(GIT_EINVALIDTYPE, "Failed to lookup object. The given type does not match the type on the ODB");
}
type = odb_obj->raw.type;