]> rtime.felk.cvut.cz Git - git.git/blobdiff - builtin-fast-export.c
Use die_errno() instead of die() when checking syscalls
[git.git] / builtin-fast-export.c
index 333d43894a70dcb68b6989218446c1008760afae..9a8a6fc6b1e98162a1548b40bd4281172e18d7b2 100644 (file)
@@ -119,7 +119,7 @@ static void handle_object(const unsigned char *sha1)
 
        printf("blob\nmark :%"PRIu32"\ndata %lu\n", last_idnum, size);
        if (size && fwrite(buf, size, 1, stdout) != 1)
-               die ("Could not write blob %s", sha1_to_hex(sha1));
+               die_errno ("Could not write blob '%s'", sha1_to_hex(sha1));
        printf("\n");
 
        show_progress();