summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cdda474)
raw | patch | inline | side by side (parent: cdda474)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 30 Sep 2005 07:09:04 +0000 (00:09 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 30 Sep 2005 07:09:04 +0000 (00:09 -0700) |
The core part detected and died upon seeing a corrupted packfile, but
did not help the user by telling which packfile is corrupt and how.
Signed-off-by: Junio C Hamano <junkio@cox.net>
did not help the user by telling which packfile is corrupt and how.
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c | patch | blob | history |
diff --git a/sha1_file.c b/sha1_file.c
index fe374c6132a74641959e201f8c03dd9952e9acee..1e847a891a9ea7470fb2554f4b08dc0fe10a3186 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
strcpy(type, "tag");
break;
default:
- die("corrupted pack file");
+ die("corrupted pack file %s containing object of kind %d",
+ p->pack_name, kind);
}
*store_size = 0; /* notyet */
}
strcpy(type, "tag");
break;
default:
- die("corrupted pack file");
+ die("corrupted pack file %s containing object of kind %d",
+ p->pack_name, kind);
}
if (sizep)
*sizep = size;
retval = unpack_entry_gently(entry, type, sizep);
unuse_packed_git(p);
if (!retval)
- die("corrupted pack file");
+ die("corrupted pack file %s", p->pack_name);
return retval;
}