IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38681 for trunk/psphot/src


Ignore:
Timestamp:
Aug 18, 2015, 3:17:56 PM (11 years ago)
Author:
bills
Message:

In some cases psphotSetMomentsWindow leaves an error code on the stack even
though it succeeds. Clear it and log a warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotFullForce.SourceStats.c

    r36633 r38681  
    106106            psFree(detections->newSources);
    107107            return false;
     108        }
     109
     110        int error = psErrorCodeLast();
     111        if (error) {
     112            psLogMsg ("psphot", PS_LOG_WARN, "Clearing error %d that psphotSetMomentsWindow left on the error stack.", error);
     113            psErrorClear();
    108114        }
    109115    }
Note: See TracChangeset for help on using the changeset viewer.