[PATCH v3 11/41] builtin/rm.c: use warning_errno()
- From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
- Date
- May 8, 2016, 09:47 UTC
- Message-ID
- <1462700881-25108-12-git-send-email-pclouds@gmail.com>
- In-Reply-To
- <1462700881-25108-1-git-send-email-pclouds@gmail.com>
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 <pclouds@gmail.com> --- builtin/rm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/rm.c b/builtin/rm.c index 8829b09..fd47d20 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; }
-- 2.8.0.rc0.210.gd302cd2