IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11773


Ignore:
Timestamp:
Feb 13, 2007, 12:05:49 PM (19 years ago)
Author:
jhoblitt
Message:

imrove -addoverlap error handling

File:
1 edited

Legend:

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

    r11770 r11773  
    643643
    644644        if (!p4SkyCellMapInsertObject(config->dbh, row)) {
    645             psError(PS_ERR_UNKNOWN, false, "database error");
     645            psErrorCode err = psErrorCodeLast();
     646            switch (err) {
     647                case PS_ERR_DB_CLIENT:
     648                    psError(PXTOOLS_ERR_SYS, false, "database error");
     649                case PS_ERR_DB_SERVER:
     650                    psError(PXTOOLS_ERR_PROG, false, "database error");
     651                default:
     652                    psError(PXTOOLS_ERR_PROG, false, "unknown error");
     653            }
    646654            psFree(row);
    647655            psFree(iter);
Note: See TracChangeset for help on using the changeset viewer.