From: Nguyễn Thái Ngọc Duy Date: Wed, 11 Sep 2013 06:06:12 GMT Subject: [PATCH 11/21] unpack-objects: report missing object name Message-ID: <1378879582-15372-12-git-send-email-pclouds@gmail.com> In-Reply-To: <1378879582-15372-1-git-send-email-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/unpack-objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/unpack-objects.c b/builtin/unpack-objects.c index 2217d7b..6d0a65c 100644 --- a/builtin/unpack-objects.c +++ b/builtin/unpack-objects.c @@ -193,7 +193,7 @@ static int check_object(struct object *obj, int type, void *data) unsigned long size; int type = sha1_object_info(obj->sha1, &size); if (type != obj->type || type <= 0) - die("object of unexpected type"); + die("object %s of unexpected type", sha1_to_hex(obj->sha1)); obj->flags |= FLAG_WRITTEN; return 0; } -- 1.8.2.82.gc24b958