Changeset 8774


Ignore:
Timestamp:
2004-12-09T17:11:05+13:00 (19 years ago)
Author:
schweer
Message:

abort if database couldn't be initialised

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/CollectionManager.java

    r8745 r8774  
    183183    if (this.database == null) {
    184184      this.database = GS3SQLConnectionFactory.getGS3SQLConnection("test");
    185       this.database.initCollection(this.qualifiedCollectionName);
     185      boolean success = this.database.initCollection(this.qualifiedCollectionName);
     186      if (!success) {
     187          System.err.println("couldn't init collection " + this.qualifiedCollectionName);
     188          System.exit(1);
     189      }
    186190    }
    187191
Note: See TracChangeset for help on using the changeset viewer.