IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2010, 3:04:19 PM (16 years ago)
Author:
Paul Price
Message:

Was writing the images after dumping the configuration, which meant that images weren't listed in the configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackFinish.c

    r27093 r27107  
    9090    }
    9191
    92     // Dump configuration
    93     psString dump = psMetadataLookupStr(&mdok, config->arguments, "DUMP_CONFIG"); // File for config
    94     if (dump) {
    95         if (!pmConfigDump(config, dump)) {
    96             psError(psErrorCodeLast(), false, "Unable to dump configuration.");
    97             return false;
     92    return true;
     93}
     94
     95
     96psExit ppStackExitCode(void)
     97{
     98    psExit exitValue = PS_EXIT_SUCCESS;        // Exit code to return
     99    psErrorCode errorCode = psErrorCodeLast(); // Error code
     100    if (errorCode != PS_ERR_NONE) {
     101        psErrorStackPrint(stderr, "Unable to perform stack.");
     102        switch (errorCode) {
     103          case PPSTACK_ERR_UNKNOWN:
     104          case PS_ERR_UNKNOWN:
     105            exitValue = PS_EXIT_UNKNOWN_ERROR;
     106            break;
     107          case PS_ERR_IO:
     108          case PS_ERR_DB_CLIENT:
     109          case PS_ERR_DB_SERVER:
     110          case PS_ERR_BAD_FITS:
     111          case PS_ERR_OS_CALL_FAILED:
     112          case PPSTACK_ERR_IO:
     113            exitValue = PS_EXIT_SYS_ERROR;
     114            break;
     115          case PS_ERR_BAD_PARAMETER_VALUE:
     116          case PS_ERR_BAD_PARAMETER_TYPE:
     117          case PS_ERR_BAD_PARAMETER_NULL:
     118          case PS_ERR_BAD_PARAMETER_SIZE:
     119          case PPSTACK_ERR_ARGUMENTS:
     120          case PPSTACK_ERR_CONFIG:
     121            exitValue = PS_EXIT_CONFIG_ERROR;
     122            break;
     123          case PPSTACK_ERR_PSF:
     124          case PPSTACK_ERR_REJECTED:
     125          case PPSTACK_ERR_DATA:
     126            exitValue = PS_EXIT_DATA_ERROR;
     127            break;
     128          case PS_ERR_UNEXPECTED_NULL:
     129          case PS_ERR_PROGRAMMING:
     130          case PPSTACK_ERR_NOT_IMPLEMENTED:
     131          case PPSTACK_ERR_PROG:
     132          default:
     133            // It's a programming error if we're not dealing with the error correctly
     134            exitValue = PS_EXIT_PROG_ERROR;
     135            break;
    98136        }
    99137    }
    100 
    101     return true;
     138    return exitValue;
    102139}
Note: See TracChangeset for help on using the changeset viewer.