i18n: factorize "invalid value" messages
Use the same message when an invalid value is passed to a command line option or a configuration variable. Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
a699367bb8
commit
1a8aea857e
@ -42,9 +42,9 @@ static enum rebase_type parse_config_rebase(const char *key, const char *value,
|
||||
return v;
|
||||
|
||||
if (fatal)
|
||||
die(_("Invalid value for %s: %s"), key, value);
|
||||
die(_("invalid value for '%s': '%s'"), key, value);
|
||||
else
|
||||
error(_("Invalid value for %s: %s"), key, value);
|
||||
error(_("invalid value for '%s': '%s'"), key, value);
|
||||
|
||||
return REBASE_INVALID;
|
||||
}
|
||||
@ -318,7 +318,7 @@ static const char *config_get_ff(void)
|
||||
if (!strcmp(value, "only"))
|
||||
return "--ff-only";
|
||||
|
||||
die(_("Invalid value for pull.ff: %s"), value);
|
||||
die(_("invalid value for '%s': '%s'"), "pull.ff", value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user