IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2010, 4:40:03 PM (16 years ago)
Author:
Paul Price
Message:

Reworked all ippTools to put fault=2 (SYS_ERROR) when can't find SQL file (presumably due to NFS problems). Removed DATA_ERROR because ippTools don't work on data (astronomical images or catalogues). This should allow us to turn on revert for fault=2 only.

File:
1 edited

Legend:

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

    r25928 r26981  
    120120    PXOPT_LOOKUP_STR(where_state, config->args, "-state", false, false);
    121121    if (where_state && (psListLength(where->list) < 2)) {
    122         psError(PXTOOLS_ERR_DATA, true, "selection by -state alone is not allowed");
     122        psError(PXTOOLS_ERR_CONFIG, true, "selection by -state alone is not allowed");
    123123        return false;
    124124    }
     
    136136
    137137    if ((!state) && (!label) && (!data_group) && (has_dist_group && !dist_group) && !(note)) {
    138         psError(PXTOOLS_ERR_DATA, false, "parameters are required");
     138        psError(PXTOOLS_ERR_CONFIG, false, "parameters are required");
    139139        return false;
    140140    }
    141141
    142142    if (state && ! pxIsValidState(state)) {
    143         psError(PXTOOLS_ERR_DATA, false, "pxIsValidState failed");
     143        psError(PXTOOLS_ERR_CONFIG, false, "pxIsValidState failed");
    144144        return false;
    145145    }
Note: See TracChangeset for help on using the changeset viewer.