IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 24, 2007, 4:59:11 PM (19 years ago)
Author:
Paul Price
Message:

Fixing pmFPAfileActivate to quietly return true when there are no files of that name to activate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileIO.c

    r13496 r13519  
    851851    // (if there are multiple files defined with the same name).
    852852
     853    if (!psMetadataLookup(files, name)) {
     854        // We activated every example of that file that we could find.
     855        return true;
     856    }
     857
    853858    psString regex = NULL;              // Regular expression for psMetadataIteratorAlloc
    854859    if (name) {
     
    871876    psFree(regex);
    872877
    873     if (num == 0) {
    874         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unable to find any files matching %s", name);
    875         return false;
    876     }
    877 
    878     return true;
    879 }
     878    return true;
     879}
Note: See TracChangeset for help on using the changeset viewer.