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

    r26956 r26981  
    160160    psString query = pxDataGet("pubtool_definerun.sql"); // Query to run
    161161    if (!query) {
    162         psError(PXTOOLS_ERR_DATA, false, "Failed to retreive SQL statement");
     162        psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement");
    163163        psFree(where);
    164164        return false;
     
    248248    psString query = pxDataGet("pubtool_pending.sql");
    249249    if (!query) {
    250         psError(PXTOOLS_ERR_DATA, false, "Failed to retreive SQL statement");
     250        psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement");
    251251        psFree(where);
    252252        return false;
     
    358358    psString query = pxDataGet("pubtool_revert.sql");
    359359    if (!query) {
    360         psError(PXTOOLS_ERR_DATA, false, "Failed to retreive SQL statement");
     360        psError(PXTOOLS_ERR_SYS, false, "Failed to retreive SQL statement");
    361361        psFree(where);
    362362        return false;
Note: See TracChangeset for help on using the changeset viewer.