IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7037


Ignore:
Timestamp:
May 1, 2006, 4:16:06 PM (20 years ago)
Author:
jhoblitt
Message:

make sure db connection is setup

Location:
trunk/ippTools/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptoolConfig.c

    r7027 r7037  
    160160    // define Database handle, if used
    161161    config->dbh = pmConfigDB(config->modules);
     162    if (!config->dbh) {
     163        psError(PS_ERR_UNKNOWN, false, "Can't configure database");
     164        exit(EXIT_FAILURE);
     165    }
    162166
    163167    return true;
  • trunk/ippTools/src/pxadminConfig.c

    r7027 r7037  
    7878    // define Database handle, if used
    7979    config->dbh = pmConfigDB(config->modules);
     80    if (!config->dbh) {
     81        psError(PS_ERR_UNKNOWN, false, "Can't configure database");
     82        exit(EXIT_FAILURE);
     83    }
     84
    8085    return config;
    8186}
  • trunk/ippTools/src/pztoolConfig.c

    r7027 r7037  
    130130    // define Database handle, if used
    131131    config->dbh = pmConfigDB(config->modules);
     132    if (!config->dbh) {
     133        psError(PS_ERR_UNKNOWN, false, "Can't configure database");
     134        exit(EXIT_FAILURE);
     135    }
    132136
    133137    return config;
  • trunk/ippTools/src/regtoolConfig.c

    r7027 r7037  
    194194    // define Database handle, if used
    195195    config->dbh = pmConfigDB(config->modules);
     196    if (!config->dbh) {
     197        psError(PS_ERR_UNKNOWN, false, "Can't configure database");
     198        exit(EXIT_FAILURE);
     199    }
    196200
    197201    return true;
Note: See TracChangeset for help on using the changeset viewer.