Convert existing die(..., strerror(errno)) to die_errno()
[gitweb.git] / builtin-fmt-merge-msg.c
index fbf9582e667dfd1e69027b35c3f307f3c7a08a99..1248d5e3a3b87df7b72e3afeadbc082040acb7ea 100644 (file)
@@ -372,8 +372,7 @@ int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
        }
 
        if (strbuf_read(&input, fileno(in), 0) < 0)
-               die("could not read input file %s", strerror(errno));
-
+               die_errno("could not read input file");
        ret = fmt_merge_msg(merge_summary, &input, &output);
        if (ret)
                return ret;