From: Nguyễn Thái Ngọc Duy Date: Sun, 8 May 2016 09:47:31 +0000 (+0700) Subject: builtin/rm.c: use warning_errno() X-Git-Tag: v2.9.0-rc0~30^2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dcf3d97fa6098382828551de8f91ad8b23d5a4c;p=git builtin/rm.c: use warning_errno() While at there, improve the message a bit (what operation failed?) and mark it for translation since the format string is now a sentence. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/builtin/rm.c b/builtin/rm.c index 8829b09d0b..fd47d20942 100644 --- a/builtin/rm.c +++ b/builtin/rm.c @@ -152,7 +152,7 @@ static int check_local_mod(unsigned char *head, int index_only) if (lstat(ce->name, &st) < 0) { if (errno != ENOENT && errno != ENOTDIR) - warning("'%s': %s", ce->name, strerror(errno)); + warning_errno(_("failed to stat '%s'"), ce->name); /* It already vanished from the working tree */ continue; }