better error message and aborting
This commit is contained in:
parent
487b091db3
commit
6b5412edcd
@ -24,7 +24,12 @@ static unsigned short modz;
|
||||
* check in image sizes are correct
|
||||
*/
|
||||
if ( d->width != w*2 || d->height != h*2 ) {
|
||||
fprintf(stderr, "%s : dimension error\n", __func__);
|
||||
fprintf(stderr, "%s: dimension error\n", __func__);
|
||||
fprintf(stderr, "\tw = %d h = %d\n", w, h);
|
||||
fprintf(stderr, "\tdest image is %dx%d\n", d->width, d->height);
|
||||
#if MUST_ABORT
|
||||
abort();
|
||||
#endif
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user