From 48960894f5a89639809bdad5618439ba59869522 Mon Sep 17 00:00:00 2001 From: Matheus Tavares Date: Mon, 22 Feb 2021 22:10:34 -0300 Subject: 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 Reviewed-by: Taylor Blau Signed-off-by: Junio C Hamano --- builtin/add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin') diff --git a/builtin/add.c b/builtin/add.c index 1e33ab81f2..0c5f53c0bb 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); } } -- cgit v1.2.3