IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27188 for trunk/ppSub/src


Ignore:
Timestamp:
Mar 4, 2010, 2:06:17 PM (16 years ago)
Author:
Paul Price
Message:

More verbosity on error codes. Distinguish programming and unknown error codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubExit.c

    r27148 r27188  
    1717          case PPSUB_ERR_UNKNOWN:
    1818          case PS_ERR_UNKNOWN:
     19            psLogMsg("ppStack", PS_LOG_WARN, "Unknown error code: %x", errorCode);
    1920            exitValue = PS_EXIT_UNKNOWN_ERROR;
    2021            break;
     
    2627          case PM_ERR_SYS:
    2728          case PPSUB_ERR_IO:
     29            psLogMsg("ppStack", PS_LOG_WARN, "I/O error code: %x", errorCode);
    2830            exitValue = PS_EXIT_SYS_ERROR;
    2931            break;
     
    3436          case PPSUB_ERR_ARGUMENTS:
    3537          case PPSUB_ERR_CONFIG:
     38            psLogMsg("ppStack", PS_LOG_WARN, "Configuration error code: %x", errorCode);
    3639            exitValue = PS_EXIT_CONFIG_ERROR;
    3740            break;
     
    3942          case PPSUB_ERR_DATA:
    4043          case PPSUB_ERR_NO_OVERLAP:
     44            psLogMsg("ppStack", PS_LOG_WARN, "Data error code: %x", errorCode);
    4145            exitValue = PS_EXIT_DATA_ERROR;
    4246            break;
     
    4549          case PPSUB_ERR_NOT_IMPLEMENTED:
    4650          case PPSUB_ERR_PROG:
     51            psLogMsg("ppStack", PS_LOG_WARN, "Programming error code: %x", errorCode);
     52            exitValue = PS_EXIT_PROG_ERROR;
     53            break;
    4754          default:
    4855            // It's a programming error if we're not dealing with the error correctly
     56            psLogMsg("ppStack", PS_LOG_WARN, "Unrecognised error code: %x", errorCode);
    4957            exitValue = PS_EXIT_PROG_ERROR;
    5058            break;
Note: See TracChangeset for help on using the changeset viewer.