]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pack-check.c
pack-check: convert "internal error" die to a BUG()
[thirdparty/git.git] / pack-check.c
index e4ef71c67393f0c7a24eff6bc6aa32c938cec4d9..39196ecfbc5046c4f113100b6d09bf1bb68c5460 100644 (file)
@@ -99,7 +99,8 @@ static int verify_packfile(struct repository *r,
        for (i = 0; i < nr_objects; i++) {
                entries[i].oid.hash = nth_packed_object_sha1(p, i);
                if (!entries[i].oid.hash)
-                       die("internal error pack-check nth-packed-object");
+                       BUG("unable to get oid of object %lu from %s",
+                           (unsigned long)i, p->pack_name);
                entries[i].offset = nth_packed_object_offset(p, i);
                entries[i].nr = i;
        }