Changeset 27824

Show
Ignore:
Timestamp:
12.07.2013 17:08:06 (6 years ago)
Author:
davidb
Message:

Small adjustment to give better 'file not found' error reporting

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/JDBMWrapper.java

    r24860 r27824  
    6666    public boolean openDatabase(String db_filename, int mode) 
    6767    { 
     68            String db_filename_with_ext = db_filename; 
    6869 
    6970        if (db_filename.endsWith(".jdb")) 
     
    105106            else 
    106107            { 
    107  
    108108                if (must_exist) 
    109109                { 
     
    125125        catch (IOException e) 
    126126        { 
    127             logger.error("couldn't open database " + db_filename); 
     127            e.printStackTrace(); 
     128 
     129            logger.error("couldn't open database " + db_filename_with_ext); 
    128130            return false; 
    129131        }