diff options
Diffstat (limited to 'src/patch_parse.c')
-rw-r--r-- | src/patch_parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c index 70acdbc22..991802cb4 100644 --- a/src/patch_parse.c +++ b/src/patch_parse.c @@ -671,7 +671,8 @@ static int parse_patch_header( continue; } - error = parse_err("no header in patch file"); + giterr_set(GITERR_PATCH, "no patch found"); + error = GIT_ENOTFOUND; done: return error; |