diff --git a/builtin-apply.c b/builtin-apply.c index 6a06be3025..721d011bd0 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -812,7 +812,8 @@ static int find_header(char *line, unsigned long size, int *hdrsize, struct patc struct fragment dummy; if (parse_fragment_header(line, len, &dummy) < 0) continue; - return error("patch fragment without header at line %d: %.*s", linenr, (int)len-1, line); + die("patch fragment without header at line %d: %.*s", + linenr, (int)len-1, line); } if (size < len + 6)