IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8339


Ignore:
Timestamp:
Aug 14, 2006, 5:17:36 PM (20 years ago)
Author:
Paul Price
Message:

Making errors get logged.

File:
1 edited

Legend:

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

    r8337 r8339  
    2929            outFile = fopen(outName, "w");
    3030            if (!outFile) {
    31                 psError(PS_ERR_IO, false, "Unable to open output file %s\n", outName);
     31                psLogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file %s\n", outName);
    3232                status = EXIT_FAILURE;
    3333                goto die;
    3434            }
    3535        } else {
    36             psError(PS_ERR_IO, false, "Unable to open output file.\n");
     36            psLogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file.\n");
    3737            status = EXIT_FAILURE;
    3838            goto die;
     
    4444
    4545    if (psListLength(results->list) == 0) {
    46         psError(PS_ERR_UNKNOWN, true, "No output.\n");
     46        psLogMsg("ppStats", PS_LOG_ERROR, "No output.\n");
    4747        psFree(results);
    4848        status = EXIT_FAILURE;
     
    5353    psString output = psMetadataConfigFormat(results);
    5454    if (!output) {
    55         psError(PS_ERR_UNKNOWN, false, "Unable to generate configuration file with result.\n");
     55        psLogMsg("ppStats", PS_LOG_ERROR, "Unable to generate configuration file with result.\n");
    5656        psFree(results);
    5757        status = EXIT_FAILURE;
Note: See TracChangeset for help on using the changeset viewer.