make patch_delta() error cases a bit more verbose
authorNicolas Pitre <nico@cam.org>
Mon, 18 Dec 2006 21:06:50 +0000 (16:06 -0500)
committerJunio C Hamano <junkio@cox.net>
Mon, 18 Dec 2006 23:30:17 +0000 (15:30 -0800)
commit57b73150c4f1dbc26474a0031f433fb34db1c13f
tree382bc838eda09dc65fd78b9bf0853a9a47ca630b
parente1bb1d31ea7b5a2a3f20508e5643e8fc9ee5f0fd
make patch_delta() error cases a bit more verbose

It is especially important to distinguish between a malloc() failure
from all the other cases.  An out of memory condition is much less
worrisome than a compatibility/corruption problem.

Also make test-delta compilable again.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile
patch-delta.c