diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-04-21 13:46:37 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-04-21 13:52:15 +0100 |
commit | b40ce1e58c211008831971f3866cb49e912a1e4f (patch) | |
tree | b6d3e1f0a727243f3c270ea960d2acc6fd0f91b7 /gs/toolbin/bmpcmp.c | |
parent | a943658240231bede6cd5f04d7f1bfa713918ccf (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.c | 6 |
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) |