Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin/rm.c: use warning_errno()
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sun, 8 May 2016 09:47:31 +0000
(16:47 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 9 May 2016 19:29:08 +0000
(12:29 -0700)
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>
builtin/rm.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
54d4739
)
diff --git
a/builtin/rm.c
b/builtin/rm.c
index 8829b09d0ba5d49edbad5f37f8246123dad3fd5f..fd47d20942269c934d8cf49571afba588a1a622e 100644
(file)
--- 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;
}