Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Noël Avila <jn.avila@free.fr>2022-02-01 01:07:47 +0300
committerJunio C Hamano <gitster@pobox.com>2022-02-05 00:58:28 +0300
commit1a8aea857e4225a9d35a531869fd47777f3063d6 (patch)
tree6de239676c35485e95ff12f3ba7629eae3a40197 /parallel-checkout.c
parenta699367bb8749a338aefb092c5d7ac75c69d61e1 (diff)
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 'parallel-checkout.c')
-rw-r--r--parallel-checkout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parallel-checkout.c b/parallel-checkout.c
index 8dd7e7bad4..31a3d0ee1b 100644
--- a/parallel-checkout.c
+++ b/parallel-checkout.c
@@ -39,8 +39,8 @@ void get_parallel_checkout_configs(int *num_workers, int *threshold)
if (env_workers && *env_workers) {
if (strtol_i(env_workers, 10, num_workers)) {
- die("invalid value for GIT_TEST_CHECKOUT_WORKERS: '%s'",
- env_workers);
+ die(_("invalid value for '%s': '%s'"),
+ "GIT_TEST_CHECKOUT_WORKERS", env_workers);
}
if (*num_workers < 1)
*num_workers = online_cpus();