fast-import: die_nicely() back to vsnprintf (reverts part of ebaa79f)
[gitweb.git] / fast-import.c
index f2ef20cbf03bbf5c34958cbeb876fba3891b1f42..309f2c58a2ba431a82a56f757482a5093cc8257d 100644 (file)
@@ -483,12 +483,14 @@ static void dump_marks(void);
 static NORETURN void die_nicely(const char *err, va_list params)
 {
        static int zombie;
+       char message[2 * PATH_MAX];
 
-       vreportf("fatal: ", err, params);
+       vsnprintf(message, sizeof(message), err, params);
+       fputs("fatal: ", stderr);
+       fputs(message, stderr);
+       fputc('\n', stderr);
 
        if (!zombie) {
-               char message[2 * PATH_MAX];
-
                zombie = 1;
                write_crash_report(message);
                end_packfile();