Changeset 11770
- Timestamp:
- Feb 13, 2007, 11:57:00 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/warptool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/warptool.c
r11769 r11770 583 583 } 584 584 585 if (!psDBTransaction(config->dbh)) { 586 psError(PS_ERR_UNKNOWN, false, "database error"); 587 return false; 588 } 589 585 590 if (!parseAndInsertSkyCellMap(config, mapfile)) { 591 psError(PS_ERR_UNKNOWN, false, "failed to inject mapfile: %s into the database", mapfile); 592 // rollback 593 if (!psDBRollback(config->dbh)) { 594 psError(PS_ERR_UNKNOWN, false, "database error"); 595 } 596 return false; 597 } 598 599 // point of no return 600 if (!psDBCommit(config->dbh)) { 601 psError(PS_ERR_UNKNOWN, false, "database error"); 602 return false; 586 603 } 587 604 … … 626 643 627 644 if (!p4SkyCellMapInsertObject(config->dbh, row)) { 628 psError(PS_ERR_UNKNOWN, false, " failed to convert mapfile: %s metdata entry into a p4SkyCellMap object", mapfile);645 psError(PS_ERR_UNKNOWN, false, "database error"); 629 646 psFree(row); 630 647 psFree(iter);
Note:
See TracChangeset
for help on using the changeset viewer.
