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@xxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html