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
@ -145,7 +145,7 @@ static int send_pack_config(const char *k, const char *v, void *cb)
|
||||
if (value && !strcasecmp(value, "if-asked"))
|
||||
args.push_cert = SEND_PACK_PUSH_CERT_IF_ASKED;
|
||||
else
|
||||
return error("Invalid value for '%s'", k);
|
||||
return error(_("invalid value for '%s'"), k);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user