summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorMatheus Tavares <matheus.bernardino@usp.br>2021-02-23 01:10:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-24 20:14:51 (GMT)
commit48960894f5a89639809bdad5618439ba59869522 (patch)
tree3ca0a99bb729b6aff384806967ccdc3f9bc33e07 /builtin
parentc937d70bfb7661d5122e08758ae0531073a719ed (diff)
downloadgit-48960894f5a89639809bdad5618439ba59869522.zip
git-48960894f5a89639809bdad5618439ba59869522.tar.gz
git-48960894f5a89639809bdad5618439ba59869522.tar.bz2
add: mark --chmod error string for translation
This error message is intended for humans, so mark it for translation. Also use error() instead of fprintf(stderr, ...), to make the corresponding line a bit cleaner, and to display the "error:" prefix, which helps classifying the nature/severity of the message. Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> Reviewed-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/add.c b/builtin/add.c
index 1e33ab8..0c5f53c 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -55,7 +55,7 @@ static void chmod_pathspec(struct pathspec *pathspec, char flip, int show_only)
err = S_ISREG(ce->ce_mode) ? 0 : -1;
if (err < 0)
- fprintf(stderr, "cannot chmod %cx '%s'\n", flip, ce->name);
+ error(_("cannot chmod %cx '%s'"), flip, ce->name);
}
}