diff options
author | Jeff King <peff@peff.net> | 2018-05-02 23:37:09 +0300 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2018-05-22 06:55:12 +0300 |
commit | db5a58c1bda5b20169b9958af1e8b05ddd178b01 (patch) | |
tree | 14f09f12506be808e45ec8b86e444a8781043e8b /builtin/index-pack.c | |
parent | eedd5949f5a6b1bb86726051d0916421cdbb5dcd (diff) |
index-pack: make fsck error message more specific
If fsck reports an error, we say only "Error in object".
This isn't quite as bad as it might seem, since the fsck
code would have dumped some errors to stderr already. But it
might help to give a little more context. The earlier output
would not have even mentioned "fsck", and that may be a clue
that the "fsck.*" or "*.fsckObjects" config may be relevant.
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'builtin/index-pack.c')
-rw-r--r-- | builtin/index-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c index bda84a92ef..d15b24eebb 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -853,7 +853,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry, die(_("invalid %s"), type_name(type)); if (do_fsck_object && fsck_object(obj, buf, size, &fsck_options)) - die(_("Error in object")); + die(_("fsck error in packed object")); if (strict && fsck_walk(obj, NULL, &fsck_options)) die(_("Not all child objects of %s are reachable"), oid_to_hex(&obj->oid)); |