gitweb.js: fix padLeftStr() and its usage
[gitweb.git] / ll-merge.c
index a2c13c4c087f7b4961f0507783d34d19ff4b2921..0571564ddfb336247c8268fbdecd8674d8bacd3e 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);
 }