IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27190


Ignore:
Timestamp:
Mar 4, 2010, 2:08:42 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/pswarp/src/pswarpExit.c

    r27148 r27190  
    2626          case PSWARP_ERR_UNKNOWN:
    2727          case PS_ERR_UNKNOWN:
     28            psLogMsg("pswarp", PS_LOG_WARN, "Unknown error code: %x", errorCode);
    2829            return PS_EXIT_UNKNOWN_ERROR;
    2930          case PS_ERR_IO:
     
    3435          case PM_ERR_SYS:
    3536          case PSWARP_ERR_IO:
     37            psLogMsg("pswarp", PS_LOG_WARN, "I/O error code: %x", errorCode);
    3638            return PS_EXIT_SYS_ERROR;
    3739          case PS_ERR_BAD_PARAMETER_VALUE:
     
    4143          case PSWARP_ERR_ARGUMENTS:
    4244          case PSWARP_ERR_CONFIG:
     45            psLogMsg("pswarp", PS_LOG_WARN, "Configuration error code: %x", errorCode);
    4346            return PS_EXIT_CONFIG_ERROR;
    4447          case PSPHOT_ERR_PSF:
    4548          case PSWARP_ERR_DATA:
    4649          case PSWARP_ERR_NO_OVERLAP:
     50            psLogMsg("pswarp", PS_LOG_WARN, "Data error code: %x", errorCode);
    4751            return PS_EXIT_DATA_ERROR;
    4852          case PS_ERR_UNEXPECTED_NULL:
    4953          case PS_ERR_PROGRAMMING:
    5054          case PSWARP_ERR_NOT_IMPLEMENTED:
     55            psLogMsg("pswarp", PS_LOG_WARN, "Programming error code: %x", errorCode);
     56            exitValue = PS_EXIT_PROG_ERROR;
     57            break;
    5158          default:
    5259            // It's a programming error if we're not dealing with the error correctly
     60            psLogMsg("pswarp", PS_LOG_WARN, "Unrecognised error code: %x", errorCode);
    5361            return PS_EXIT_PROG_ERROR;
    5462        }
Note: See TracChangeset for help on using the changeset viewer.