summaryrefslogtreecommitdiff
path: root/ls-refs.c
diff options
context:
space:
mode:
authorJean-Noël Avila <jn.avila@free.fr>2022-01-31 22:07:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-02-04 21:58:28 (GMT)
commit1a8aea857e4225a9d35a531869fd47777f3063d6 (patch)
tree6de239676c35485e95ff12f3ba7629eae3a40197 /ls-refs.c
parenta699367bb8749a338aefb092c5d7ac75c69d61e1 (diff)
downloadgit-1a8aea857e4225a9d35a531869fd47777f3063d6.zip
git-1a8aea857e4225a9d35a531869fd47777f3063d6.tar.gz
git-1a8aea857e4225a9d35a531869fd47777f3063d6.tar.bz2
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>
Diffstat (limited to 'ls-refs.c')
-rw-r--r--ls-refs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ls-refs.c b/ls-refs.c
index 5407832..98e6937 100644
--- a/ls-refs.c
+++ b/ls-refs.c
@@ -34,7 +34,8 @@ static void ensure_config_read(void)
} else if (!strcmp(str, "ignore")) {
/* do nothing */
} else {
- die(_("invalid value '%s' for lsrefs.unborn"), str);
+ die(_("invalid value for '%s': '%s'"),
+ "lsrefs.unborn", str);
}
}
config_read = 1;