Code

block-sha1: get rid of redundant 'lenW' context
[git.git] / builtin-grep.c
index ff8e51b43ee7ebf635d72de023dca898c0db9440..f477659100fdc63bff5938b4c96f28eaefc07460 100644 (file)
@@ -612,7 +612,7 @@ static int file_callback(const struct option *opt, const char *arg, int unset)
 
        patterns = fopen(arg, "r");
        if (!patterns)
-               die("'%s': %s", arg, strerror(errno));
+               die_errno("cannot open '%s'", arg);
        while (strbuf_getline(&sb, patterns, '\n') == 0) {
                /* ignore empty line like grep does */
                if (sb.len == 0)