rerere: unify error messages when read_cache fails
commite69db0b323ff35ffb15e96b0ab492c0f6268f43c
authorThomas Gummerer <t.gummerer@gmail.com>
Sat, 14 Jul 2018 21:44:33 +0000 (14 22:44 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jul 2018 21:03:24 +0000 (16 14:03 -0700)
tree66622402174a45bd1aa2a11c0d123577e85f07ba
parente3331758f12da22f4103eec7efe1b5304a9be5e9
rerere: unify error messages when read_cache fails

We have multiple different variants of the error message we show to
the user if 'read_cache' fails.  The "Could not read index" variant we
are using in 'rerere.c' is currently not used anywhere in translated
form.

As a subsequent commit will mark all output that comes from 'rerere.c'
for translation, make the life of the translators a little bit easier
by using a string that is used elsewhere, and marked for translation
there, and thus most likely already translated.

"index file corrupt" seems to be the most common error message we show
when 'read_cache' fails, so use that here as well.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
rerere.c