IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2010, 1:17:56 PM (16 years ago)
Author:
eugene
Message:

better handling for certain aborts; clarify verbosity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relastro.20100326/src/ImageOps.c

    r27490 r27496  
    163163  }
    164164
    165   for (i = 0; VERBOSE && (i < Nimage); i++) {
     165  for (i = 0; VERBOSE2 && (i < Nimage); i++) {
    166166    name = GetPhotcodeNamebyCode (image[i].photcode);
    167167    fprintf (stderr, "image %lld has %lld measures (%s, %s)\n", (long long) i, (long long) Nlist[i],
     
    183183  idx = getImageByID (ID);
    184184  if (idx == -1) {
    185     fprintf (stderr, "can't match detection to image?\n");
    186     abort();
     185    if (VERBOSE2) fprintf (stderr, "can't match detection to image?\n");
     186    return;
    187187  }
    188188
     
    257257    return;
    258258  }
    259   fprintf (stderr, "can't match detection to image?\n");
    260   abort();
     259  if (VERBOSE2) fprintf (stderr, "can't match detection to image?\n");
     260  return;
    261261}
    262262# endif
     
    429429  if (!badCoords(im)) {
    430430    fprintf (stderr, "ERROR: inconsistent result?");
    431     exit (1);
     431    abort();
    432432  }
    433433
     
    500500    if (mosaic == NULL) {
    501501      fprintf (stderr, "mosaic not found for image %s\n", image[im].name);
    502       exit (1);
     502      abort();
    503503    }
    504504    moscoords = &mosaic[0].coords;
     
    575575    if (mosaic == NULL) {
    576576      fprintf (stderr, "mosaic not found for image %s\n", image[im].name);
    577       exit (1);
     577      abort ();
    578578    }
    579579    moscoords = &mosaic[0].coords;
Note: See TracChangeset for help on using the changeset viewer.