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/pxmagic.c

    r26569 r26981  
    3535    psString query_temp = pxDataGet(queryFile);
    3636    if (!query_temp) {
    37         psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement from %s", queryFile);
     37        psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement from %s", queryFile);
    3838        psFree(queryFile);
    3939        if (!psDBRollback(config->dbh)) {
     
    7575    if (not_destreaked) {
    7676        if (destreaked) {
    77             psError(PXTOOLS_ERR_DATA, true, "providing -not_destreaked and -destreaked makes no sense");
     77            psError(PXTOOLS_ERR_CONFIG, true, "providing -not_destreaked and -destreaked makes no sense");
    7878            return false;
    7979        }
    8080        if (magicked) {
    81             psError(PXTOOLS_ERR_DATA, true, "providing -not_destreaked and -magicked makes no sense");
     81            psError(PXTOOLS_ERR_CONFIG, true, "providing -not_destreaked and -magicked makes no sense");
    8282            return false;
    8383        }
Note: See TracChangeset for help on using the changeset viewer.