IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24587


Ignore:
Timestamp:
Jun 25, 2009, 3:51:30 PM (17 years ago)
Author:
eugene
Message:

dump error stack before exit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotArguments.c

    r24144 r24587  
    105105    pmConfig *config = pmConfigRead(&argc, argv, PSPHOT_RECIPE);
    106106    if (config == NULL) {
    107         psError(PSPHOT_ERR_CONFIG, false, "Can't read site configuration");
     107      psErrorStackPrint(stderr, "Can't read site configuration");
    108108        exit(PS_EXIT_CONFIG_ERROR);
    109109    }
     
    121121    if ((N = psArgumentGet (argc, argv, "-modeltest"))) {
    122122        if (argc<=N+2) {
    123           psError(PSPHOT_ERR_ARGUMENTS, true,
    124                   "Expected to see 2 more arguments; saw %d", argc - 1);
     123          psErrorStackPrint(stderr, "Expected to see 2 more arguments; saw %d", argc - 1);
    125124          exit(PS_EXIT_CONFIG_ERROR);
    126125        }
     
    137136        if ((N = psArgumentGet (argc, argv, "-model"))) {
    138137            if (argc<=N+1) {
    139               psError(PSPHOT_ERR_ARGUMENTS, true,
    140                       "Expected to see 1 more argument; saw %d", argc - 1);
     138              psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
    141139              exit(PS_EXIT_CONFIG_ERROR);
    142140            }
     
    149147        if ((N = psArgumentGet (argc, argv, "-fitmode"))) {
    150148            if (argc<=N+1) {
    151               psError(PSPHOT_ERR_ARGUMENTS, true,
    152                       "Expected to see 1 more argument; saw %d", argc - 1);
     149              psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
    153150              exit(PS_EXIT_CONFIG_ERROR);
    154151            }
     
    159156        if ((N = psArgumentGet (argc, argv, "-fitset"))) {
    160157            if (argc<=N+1) {
    161               psError(PSPHOT_ERR_ARGUMENTS, true,
    162                       "Expected to see 1 more argument; saw %d", argc - 1);
     158              psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
    163159              exit(PS_EXIT_CONFIG_ERROR);
    164160            }
     
    172168    if ((N = psArgumentGet (argc, argv, "-photcode"))) {
    173169        if (argc<=N+1) {
    174           psError(PSPHOT_ERR_ARGUMENTS, true,
    175                   "Expected to see 1 more argument; saw %d", argc - 1);
     170          psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
    176171          exit(PS_EXIT_CONFIG_ERROR);
    177172        }
     
    190185    if ((N = psArgumentGet (argc, argv, "-break"))) {
    191186        if (argc<=N+1) {
    192           psError(PSPHOT_ERR_ARGUMENTS, true,
    193                   "Expected to see 1 more argument; saw %d", argc - 1);
     187          psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
    194188          exit(PS_EXIT_CONFIG_ERROR);
    195189        }
     
    202196    if ((N = psArgumentGet (argc, argv, "-region"))) {
    203197        if (argc<=N+1) {
    204           psError(PSPHOT_ERR_ARGUMENTS, true,
    205                   "Expected to see 1 more argument; saw %d", argc - 1);
     198          psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
    206199          exit(PS_EXIT_CONFIG_ERROR);
    207200        }
     
    214207    if ((N = psArgumentGet (argc, argv, "-chip"))) {
    215208        if (argc<=N+1) {
    216           psError(PSPHOT_ERR_ARGUMENTS, true,
    217                   "Expected to see 1 more argument; saw %d", argc - 1);
     209          psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);
    218210          exit(PS_EXIT_CONFIG_ERROR);
    219211        }
Note: See TracChangeset for help on using the changeset viewer.