* [PATCH] Added the 'errno' on die msg when the attempt to open the COMMIT_EDITMSG file fails.
@ 2008-05-27 0:11 Cristian Peraferrer
0 siblings, 0 replies; only message in thread
From: Cristian Peraferrer @ 2008-05-27 0:11 UTC (permalink / raw)
To: git
I have added the strerror(errno) in the die message when the attempt
to open the COMMIT_EDITMSG file fails.
Signed-off-by: Cristian Peraferrer <corellian.c@gmail.com>
---
builtin-commit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-commit.c b/builtin-commit.c
index 07872c8..014a406 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -500,7 +500,7 @@ static int prepare_to_commit(const char
*index_file, const char *prefix)
fp = fopen(git_path(commit_editmsg), "w");
if (fp == NULL)
- die("could not open %s", git_path(commit_editmsg));
+ die("could not open %s: %s", git_path(commit_editmsg),
strerror(errno));
if (cleanup_mode != CLEANUP_NONE)
stripspace(&sb, 0);
--
1.5.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-27 0:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-27 0:11 [PATCH] Added the 'errno' on die msg when the attempt to open the COMMIT_EDITMSG file fails Cristian Peraferrer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).