summaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fast-import.c b/fast-import.c
index 309f2c5..f2ef20c 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -483,14 +483,12 @@ static void dump_marks(void);
static NORETURN void die_nicely(const char *err, va_list params)
{
static int zombie;
- char message[2 * PATH_MAX];
- vsnprintf(message, sizeof(message), err, params);
- fputs("fatal: ", stderr);
- fputs(message, stderr);
- fputc('\n', stderr);
+ vreportf("fatal: ", err, params);
if (!zombie) {
+ char message[2 * PATH_MAX];
+
zombie = 1;
write_crash_report(message);
end_packfile();