diff options
author | Jeff King <peff@peff.net> | 2023-11-09 08:14:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-09 11:07:53 +0100 |
commit | 93d29247298e9ae3fbc6dd8e022a6260b568191a (patch) | |
tree | fe61f743c35be71754dcf039697a211e760c806d /commit-graph.c | |
parent | commit-graph: drop redundant call to "lite" verification (diff) | |
download | git-93d29247298e9ae3fbc6dd8e022a6260b568191a.tar.xz git-93d29247298e9ae3fbc6dd8e022a6260b568191a.zip |
commit-graph: clarify missing-chunk error messages
When a required commit-graph chunk cannot be loaded, we leave its entry
in the struct NULL, and then later complain that it is missing. But
that's just one reason we might not have loaded it, as we also do some
data quality checks.
Let's switch these messages to say "missing or corrupted", which is
exactly what the midx code says for the same cases. Likewise, we'll use
the same phrasing and capitalization as those for consistency. And while
we're here, we can mark them for translation (just like the midx ones).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
-rw-r--r-- | commit-graph.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commit-graph.c b/commit-graph.c index 87e594c42e..85450a93de 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -292,15 +292,15 @@ static int verify_commit_graph_lite(struct commit_graph *g) * itself. */ if (!g->chunk_oid_fanout) { - error("commit-graph is missing the OID Fanout chunk"); + error(_("commit-graph required OID fanout chunk missing or corrupted")); return 1; } if (!g->chunk_oid_lookup) { - error("commit-graph is missing the OID Lookup chunk"); + error(_("commit-graph required OID lookup chunk missing or corrupted")); return 1; } if (!g->chunk_commit_data) { - error("commit-graph is missing the Commit Data chunk"); + error(_("commit-graph required commit data chunk missing or corrupted")); return 1; } |