summaryrefslogtreecommitdiff
path: root/gs/toolbin/bmpcmp.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-04-21 13:46:37 +0100
committerRobin Watts <robin.watts@artifex.com>2012-04-21 13:52:15 +0100
commitb40ce1e58c211008831971f3866cb49e912a1e4f (patch)
treeb6d3e1f0a727243f3c270ea960d2acc6fd0f91b7 /gs/toolbin/bmpcmp.c
parenta943658240231bede6cd5f04d7f1bfa713918ccf (diff)
bmpcmp: Error handling tweaks.
When failing to match a page due to differences in number of colors or sizes etc, output the page number and continue looking at other pages in the file.
Diffstat (limited to 'gs/toolbin/bmpcmp.c')
-rw-r--r--gs/toolbin/bmpcmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gs/toolbin/bmpcmp.c b/gs/toolbin/bmpcmp.c
index 4604a95f5..d37fa42e7 100644
--- a/gs/toolbin/bmpcmp.c
+++ b/gs/toolbin/bmpcmp.c
@@ -2890,10 +2890,10 @@ int main(int argc, char *argv[])
(cmyk != cmyk2))
{
fprintf(stderr,
- "bmpcmp: Can't compare images "
+ "bmpcmp: Page %d: Can't compare images "
"(w=%d,%d) (h=%d,%d) (s=%d,%d) (bpp=%d,%d) (cmyk=%d,%d)!\n",
- w, w2, h, h2, s, s2, bpp, bpp2, cmyk, cmyk2);
- exit(EXIT_FAILURE);
+ imagecount, w, w2, h, h2, s, s2, bpp, bpp2, cmyk, cmyk2);
+ continue;
}
if (params.window != 0)