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
@@ -67,7 +67,7 @@ static void set_diff_merges(struct rev_info *revs, const char *optarg)
|
||||
diff_merges_setup_func_t func = func_by_opt(optarg);
|
||||
|
||||
if (!func)
|
||||
die(_("unknown value for --diff-merges: %s"), optarg);
|
||||
die(_("invalid value for '%s': '%s'"), "--diff-merges", optarg);
|
||||
|
||||
func(revs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user