builtin-apply: Show a more descriptive error on failure when opening a patch
commit1da16439bece6b90e1ce033bc50c5316f2c5dac2
authorAlberto Bertogli <albertito@gmail.com>
Mon, 14 Apr 2008 15:30:27 +0000 (14 12:30 -0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Apr 2008 05:42:08 +0000 (15 22:42 -0700)
treee0723c9ebcc467c07219a7ae92db6e5132357128
parent2c2d02a6a72ce690df9dafea5e76bd4395d16927
builtin-apply: Show a more descriptive error on failure when opening a patch

When a patch can't be opened (it doesn't exist, there are permission
problems, etc.) we get the usage text, which is not a proper indication of
failure.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-apply.c