X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=bisect.c;h=7f20acb4b9e391bd383597ec554ec58b70979fe5;hb=4f6339b0c353b5c03b566b605e50a743d97fc08e;hp=52220df751aaacec08792c01ad83f2a1b27aae5f;hpb=5cacf3d64437c235610ce4f426ce6359d483c924;p=git.git diff --git a/bisect.c b/bisect.c index 52220df75..7f20acb4b 100644 --- a/bisect.c +++ b/bisect.c @@ -461,7 +461,7 @@ static void read_bisect_paths(struct argv_array *array) FILE *fp = fopen(filename, "r"); if (!fp) - die("Could not open file '%s': %s", filename, strerror(errno)); + die_errno("Could not open file '%s'", filename); while (strbuf_getline(&str, fp, '\n') != EOF) { char *quoted; @@ -740,8 +740,7 @@ static void mark_expected_rev(char *bisect_rev_hex) int fd = open(filename, O_CREAT | O_TRUNC | O_WRONLY, 0600); if (fd < 0) - die("could not create file '%s': %s", - filename, strerror(errno)); + die_errno("could not create file '%s'", filename); bisect_rev_hex[len] = '\n'; write_or_die(fd, bisect_rev_hex, len + 1);