Changeset 27190
- Timestamp:
- Mar 4, 2010, 2:08:42 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpExit.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpExit.c
r27148 r27190 26 26 case PSWARP_ERR_UNKNOWN: 27 27 case PS_ERR_UNKNOWN: 28 psLogMsg("pswarp", PS_LOG_WARN, "Unknown error code: %x", errorCode); 28 29 return PS_EXIT_UNKNOWN_ERROR; 29 30 case PS_ERR_IO: … … 34 35 case PM_ERR_SYS: 35 36 case PSWARP_ERR_IO: 37 psLogMsg("pswarp", PS_LOG_WARN, "I/O error code: %x", errorCode); 36 38 return PS_EXIT_SYS_ERROR; 37 39 case PS_ERR_BAD_PARAMETER_VALUE: … … 41 43 case PSWARP_ERR_ARGUMENTS: 42 44 case PSWARP_ERR_CONFIG: 45 psLogMsg("pswarp", PS_LOG_WARN, "Configuration error code: %x", errorCode); 43 46 return PS_EXIT_CONFIG_ERROR; 44 47 case PSPHOT_ERR_PSF: 45 48 case PSWARP_ERR_DATA: 46 49 case PSWARP_ERR_NO_OVERLAP: 50 psLogMsg("pswarp", PS_LOG_WARN, "Data error code: %x", errorCode); 47 51 return PS_EXIT_DATA_ERROR; 48 52 case PS_ERR_UNEXPECTED_NULL: 49 53 case PS_ERR_PROGRAMMING: 50 54 case PSWARP_ERR_NOT_IMPLEMENTED: 55 psLogMsg("pswarp", PS_LOG_WARN, "Programming error code: %x", errorCode); 56 exitValue = PS_EXIT_PROG_ERROR; 57 break; 51 58 default: 52 59 // 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); 53 61 return PS_EXIT_PROG_ERROR; 54 62 }
Note:
See TracChangeset
for help on using the changeset viewer.
