diff --git a/builtin-commit.c b/builtin-commit.c
index 0a70808280c5366acd5655caf0b081b42e628bb4..e3ad38b3bd78bc2d19c5e5d1ebfbe0388b22582e 100644 (file)
--- a/builtin-commit.c
+++ b/builtin-commit.c
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);