IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2007, 9:36:41 AM (19 years ago)
Author:
eugene
Message:

improving the error handling: detect data vs config errors

File:
1 edited

Legend:

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

    r8749 r13640  
    1515    )
    1616{
     17    psExit status;
     18
    1719    // Get the options, open the files
    1820    ppStatsData *data = ppStatsSetupFromRecipe(NULL, config);
     
    2931
    3032    // Go through the FPA and do the hard work
    31     out = ppStatsLoop(out, data, config);
     33    psMetadata *result = ppStatsLoop(&status, out, data, config);
     34    if (status != PS_EXIT_SUCCESS) {
     35        psError (PS_ERR_UNKNOWN, false, "trouble getting stats\n");
     36        psFree(result);
     37        psFree(data);
     38        return (NULL);
     39    }
    3240
    3341    psFree(data);
    34 
    35     return out;
     42    return result;
    3643}
Note: See TracChangeset for help on using the changeset viewer.