IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12793


Ignore:
Timestamp:
Apr 10, 2007, 3:49:46 PM (19 years ago)
Author:
eugene
Message:

added error stack print to error cases for arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroArguments.c

    r12547 r12793  
    88    if (argc == 1) {
    99        psError(PSASTRO_ERR_ARGUMENTS, true, "No arguments supplied");
     10        psErrorStackPrint(stderr, "exit");
    1011        return NULL;
    1112    }
     
    1516    if (config == NULL) {
    1617        psError(PSASTRO_ERR_CONFIG, false, "Can't read site configuration");
     18        psErrorStackPrint(stderr, "exit");
    1719        return NULL;
    1820    }
     
    5961    if (!status) {
    6062        psError(PSASTRO_ERR_ARGUMENTS, true, "Missing -file (input) or -list (input)");
     63        psErrorStackPrint(stderr, "exit");
    6164        return NULL;
    6265    }
     
    6467    if (argc != 2) {
    6568        psError(PSASTRO_ERR_ARGUMENTS, true, "Incorrect arguments supplied");
     69        psErrorStackPrint(stderr, "exit");
    6670        return NULL;
    6771    }
Note: See TracChangeset for help on using the changeset viewer.