Skip to content
  • Thomas Gummerer's avatar
    rerere: unify error messages when read_cache fails · e69db0b3
    Thomas Gummerer authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarThomas Gummerer <t.gummerer@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    e69db0b3