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
@ -702,7 +702,7 @@ int git_gpg_config(const char *var, const char *value, void *cb)
|
||||
return config_error_nonbool(var);
|
||||
fmt = get_format_by_name(value);
|
||||
if (!fmt)
|
||||
return error("unsupported value for %s: %s",
|
||||
return error(_("invalid value for '%s': '%s'"),
|
||||
var, value);
|
||||
use_format = fmt;
|
||||
return 0;
|
||||
@ -717,8 +717,8 @@ int git_gpg_config(const char *var, const char *value, void *cb)
|
||||
free(trust);
|
||||
|
||||
if (ret)
|
||||
return error("unsupported value for %s: %s", var,
|
||||
value);
|
||||
return error(_("invalid value for '%s': '%s'"),
|
||||
var, value);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user