Changeset 10634


Ignore:
Timestamp:
2005-09-26T11:07:14+12:00 (19 years ago)
Author:
kjdon
Message:

changed the error messages for install to come from the Dictionary, and to include info about having docs open in external apps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r10586 r10634  
    12651265            // Check the delete worked
    12661266            if (index_dir.exists()) {
    1267             throw new Exception("Index directory could not be removed.");
     1267            throw new Exception(Dictionary.get("CollectionManager.Index_Not_Deleted"));
    12681268            }
    12691269        }
     
    12711271        // Move the building directory to become the new index directory
    12721272        if (building_dir.renameTo(index_dir) == false) {
    1273             throw new Exception("Build directory could not be moved.");
     1273            throw new Exception(Dictionary.get("CollectionManager.Build_Not_Moved"));
    12741274        }
    12751275        }
     
    12811281    }
    12821282    catch (Exception exception) {
    1283         JOptionPane.showMessageDialog(Gatherer.g_man, "Exception detected during collection install.\nMost likely caused by Windows or Local Library holding locks on files:\n" + exception.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
     1283        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.Install_Exception", exception.getMessage()), "Error", JOptionPane.ERROR_MESSAGE);
    12841284        return false;
    12851285    }
Note: See TracChangeset for help on using the changeset viewer.