summaryrefslogtreecommitdiff
path: root/builtin/rm.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 09:47:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-09 19:29:08 (GMT)
commit7dcf3d97fa6098382828551de8f91ad8b23d5a4c (patch)
tree53ca72445cdec4d8e98cdf6fa596f4d585d4f0be /builtin/rm.c
parent54d47394b4307a0c9149007bd3d396b8eda8e995 (diff)
downloadgit-7dcf3d97fa6098382828551de8f91ad8b23d5a4c.zip
git-7dcf3d97fa6098382828551de8f91ad8b23d5a4c.tar.gz
git-7dcf3d97fa6098382828551de8f91ad8b23d5a4c.tar.bz2
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 <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rm.c')
-rw-r--r--builtin/rm.c2
1 files changed, 1 insertions, 1 deletions
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;
}