summaryrefslogtreecommitdiff
path: root/index-pack.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2006-12-20 13:34:05 -0500
committerJunio C Hamano <junkio@cox.net>2006-12-20 10:46:34 -0800
commit08a19d873c16aa6127bf4c40cf99a9dd19558a0c (patch)
tree8f2e561d52364489ce05b513b754a9abb8abce46 /index-pack.c
parent85023577a8f4b540aa64aa37f6f44578c0c305a3 (diff)
downloadgit-08a19d873c16aa6127bf4c40cf99a9dd19558a0c.tar.gz
clarify some error messages wrt unknown object types
If ever new object types are added for future extensions then better have current git version report them as "unknown" instead of "corrupted". Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'index-pack.c')
-rw-r--r--index-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/index-pack.c b/index-pack.c
index 43e007f823..5f6d128a83 100644
--- a/index-pack.c
+++ b/index-pack.c
@@ -266,7 +266,7 @@ static void *unpack_raw_entry(struct object_entry *obj, union delta_base *delta_
case OBJ_TAG:
break;
default:
- bad_object(obj->offset, "bad object type %d", obj->type);
+ bad_object(obj->offset, "unknown object type %d", obj->type);
}
obj->hdr_size = consumed_bytes - obj->offset;