diff-no-index.c: use error_errno()

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed May 8, 2016 at 16:47 UTC a1f06be3ff78f088aa5e71cd518b74cdf5a4d34e
1 file changed +1 -2
diff-no-index.c
+1 -2
@@ -65,8 +65,7 @@ static int populate_from_stdin(struct diff_filespec *s)
65 size_t size = 0;
66
67 if (strbuf_read(&buf, 0, 0) < 0)
68 - return error("error while reading from stdin %s",
69 - strerror(errno));
68 + return error_errno("error while reading from stdin");
69
70 s->should_munmap = 0;
71 s->data = strbuf_detach(&buf, &size);