]> rtime.felk.cvut.cz Git - git.git/blobdiff - ll-merge.c
Use die_errno() instead of die() when checking syscalls
[git.git] / ll-merge.c
index 81c02ad0531e98379d8cd11dc7c2d70214d67fb4..caf22be92723f3a00a70a0b8ce7aab05dc235dcb 100644 (file)
@@ -152,7 +152,7 @@ static void create_temp(mmfile_t *src, char *path)
        strcpy(path, ".merge_file_XXXXXX");
        fd = xmkstemp(path);
        if (write_in_full(fd, src->ptr, src->size) != src->size)
-               die("unable to write temp-file");
+               die_errno("unable to write temp-file");
        close(fd);
 }