Replace all die("BUG: ...") calls by BUG() ones
[gitweb.git] / builtin / fsck.c
index 087360a6757c607c4b38cce5fafad3bbb0822fc0..1ea414480a40942e41fef87f4664fd79373a0206 100644 (file)
@@ -519,7 +519,7 @@ static struct object *parse_loose_object(const struct object_id *oid,
                return NULL;
 
        if (!contents && type != OBJ_BLOB)
-               die("BUG: read_loose_object streamed a non-blob");
+               BUG("read_loose_object streamed a non-blob");
 
        obj = parse_object_buffer(oid, type, size, contents, &eaten);