]> git.ipfire.org Git - thirdparty/git.git/blobdiff - grep.c
Start the 2.46 cycle
[thirdparty/git.git] / grep.c
diff --git a/grep.c b/grep.c
index 5f23d1a50cabb35732f9515355fe0a85a33d2ff8..ac34bfeafb3c911aa6918d4f90deeca5f8da3bee 100644 (file)
--- a/grep.c
+++ b/grep.c
@@ -621,7 +621,7 @@ static struct grep_expr *compile_pattern_atom(struct grep_pat **list)
                *list = p->next;
                x = compile_pattern_or(list);
                if (!*list || (*list)->token != GREP_CLOSE_PAREN)
-                       die("unmatched parenthesis");
+                       die("unmatched ( for expression group");
                *list = (*list)->next;
                return x;
        default:
@@ -792,7 +792,7 @@ void compile_grep_patterns(struct grep_opt *opt)
        if (p)
                opt->pattern_expression = compile_pattern_expr(&p);
        if (p)
-               die("incomplete pattern expression: %s", p->pattern);
+               die("incomplete pattern expression group: %s", p->pattern);
 
        if (opt->no_body_match && opt->pattern_expression)
                opt->pattern_expression = grep_not_expr(opt->pattern_expression);