IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 22, 2010, 2:01:36 PM (16 years ago)
Author:
rhenders
Message:

Moved input-file check to more general place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/src/ippToPsps.c

    r29184 r29198  
    210210// Runs the requested process
    211211static int ippToPsps_run(IppToPsps *this) {
     212
     213    // any files?
     214    if (this->batchType == BATCH_DETECTION ||
     215            this->batchType == BATCH_STACK ||
     216            this->batchType == BATCH_DIFFERENCE ) {
     217   
     218        if (this->numOfInputFiles < 1) this->exitCode = PS_EXIT_DATA_ERROR;
     219        psError(PS_ERR_UNKNOWN, false, "No input files for this batch");
     220
     221    }
    212222
    213223    if(this->exitCode == PS_EXIT_SUCCESS) {
Note: See TracChangeset for help on using the changeset viewer.