abbrev: add FALLBACK_DEFAULT_ABBREV to prepare for auto sizing
[gitweb.git] / diff-no-index.c
index 59237a626727864c786aca078564b632da08f294..f420786039d387d3a943d510c802ecd90c3ddf28 100644 (file)
@@ -65,8 +65,7 @@ static int populate_from_stdin(struct diff_filespec *s)
        size_t size = 0;
 
        if (strbuf_read(&buf, 0, 0) < 0)
-               return error("error while reading from stdin %s",
-                                    strerror(errno));
+               return error_errno("error while reading from stdin");
 
        s->should_munmap = 0;
        s->data = strbuf_detach(&buf, &size);