X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-fetch--tool.c;h=3dbdf7a2887002f0d7a67a1db35bd3c72d7a9d30;hb=b7eb912b0d3352d43a11c79fab97cd7f92f0646e;hp=29356d25db910c6d90df46da87aa374467611350;hpb=9b7dc7183528d42c46786a0be1acc58d4cd1f47a;p=git.git diff --git a/builtin-fetch--tool.c b/builtin-fetch--tool.c index 29356d25d..3dbdf7a28 100644 --- a/builtin-fetch--tool.c +++ b/builtin-fetch--tool.c @@ -8,7 +8,7 @@ static char *get_stdin(void) { struct strbuf buf = STRBUF_INIT; if (strbuf_read(&buf, 0, 1024) < 0) { - die("error reading standard input: %s", strerror(errno)); + die_errno("error reading standard input"); } return strbuf_detach(&buf, NULL); }