{"thread":{"id":"65932","subject":"[PATCH] builtin/rm.c: use die_errno() when system call fails","startedAt":"2026-07-06T18:22:19Z","lastAt":"2026-07-06T18:22:19Z","messageCount":1,"participants":["Gatla Vishweshwar Reddy"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"547255","messageId":"20260706182132.85014-1-gatlavishweshwarreddy26@gmail.com","threadId":"65932","inReplyTo":null,"subject":"[PATCH] builtin/rm.c: use die_errno() when system call fails","fromName":"Gatla Vishweshwar Reddy","fromEmail":"gatlavishweshwarreddy26@gmail.com","sentAt":"2026-07-06T18:21:32Z","receivedAt":"2026-07-06T18:22:19Z","isPatch":true,"body":"---\n builtin/rm.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/rm.c b/builtin/rm.c\nindex 081d0bc375..3f5e6e232d 100644\n--- a/builtin/rm.c\n+++ b/builtin/rm.c\n@@ -396,7 +396,7 @@ int cmd_rm(int argc,\n \t\t\tprintf(\"rm '%s'\\n\", path);\n \n \t\tif (remove_file_from_index(the_repository->index, path))\n-\t\t\tdie(_(\"git rm: unable to remove %s\"), path);\n+\t\t\tdie_errno(_(\"git rm: unable to remove %s\"), path);\n \t}\n \n \tif (show_only)\n-- \n2.54.0\n\n"}]}