IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 26, 2010, 3:34:01 PM (16 years ago)
Author:
Paul Price
Message:

Make inability to match source lists a data quality issue --- it means there were no sources in either list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubMatchPSFs.c

    r27692 r28119  
    243243        psFree(lists);
    244244        if (!detections->allSources) {
    245             psError(PPSUB_ERR_DATA, false, "Unable to merge source lists");
    246245            psFree(detections);
    247             return false;
     246            psErrorCode error = psErrorCodeLast(); // Error code
     247            if (error == PM_ERR_OBJECTS) {
     248                psErrorStackPrint(stderr, "Unable to match source lists");
     249                psWarning("Unable to match source lists --- suspect bad data quality.");
     250                ppSubDataQuality(data, error, PPSUB_FILES_ALL);
     251                return true;
     252            } else {
     253                psError(error, false, "Unable to merge source lists");
     254                return false;
     255            }
    248256        }
    249257    }
Note: See TracChangeset for help on using the changeset viewer.