IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23600


Ignore:
Timestamp:
Mar 30, 2009, 10:43:06 AM (17 years ago)
Author:
Paul Price
Message:

Ensuring detselect command is printed in case of error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmDetrendDB.c

    r23268 r23600  
    175175    if (!pipe) {
    176176        psError (PS_ERR_IO, false, "error calling command %s", line);
     177        psLogMsg ("psModules.detrend", PS_LOG_ERROR, "detselect command:\n %s\n", line);
    177178        goto failure;
    178179    }
     
    188189        psError (PS_ERR_IO, false, "error running detselect");
    189190        psLogMsg ("psModules.detrend", PS_LOG_ERROR, "detselect command:\n %s\n", line);
     191        goto failure;
     192    }
     193
     194    if (!buffer->data || strlen(buffer->data) == 0) {
     195        psError(PS_ERR_IO, true, "Unable to find suitable detrend");
     196        psLogMsg("psModules.detrend", PS_LOG_ERROR, "detselect command:\n %s\n", line);
    190197        goto failure;
    191198    }
Note: See TracChangeset for help on using the changeset viewer.