IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2007, 12:49:20 PM (19 years ago)
Author:
Paul Price
Message:

-definebyquery should have "-inst" as required, since it is searched on for detselect in pmDetrendSelect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettool.c

    r12429 r12685  
    690690        return false;
    691691    }
     692    psString camera = psMetadataLookupStr(&status, config->args, "-inst");
     693    if (!status) {
     694        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -inst");
     695        return false;
     696    }
     697    if (!camera) {
     698        psError(PS_ERR_UNKNOWN, false, "-inst is required");
     699        return false;
     700    }
    692701
    693702    psMetadata *where = psMetadataAlloc();
     
    939948    if (mode && !isValidMode(config, mode)) {
    940949        psError(PS_ERR_UNKNOWN, false, "invalud mode");
    941         return false;
    942     }
    943 
    944     psString camera = psMetadataLookupStr(&status, config->args, "-inst");
    945     if (!status) {
    946         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -inst");
    947950        return false;
    948951    }
Note: See TracChangeset for help on using the changeset viewer.