From: <no...@us...> - 2010-07-16 19:03:02
|
Revision: 3455 http://obo.svn.sourceforge.net/obo/?rev=3455&view=rev Author: nomi Date: 2010-07-16 19:02:55 +0000 (Fri, 16 Jul 2010) Log Message: ----------- Improved error messages Modified Paths: -------------- phenote/trunk/src/java/phenote/config/Config.java Modified: phenote/trunk/src/java/phenote/config/Config.java =================================================================== --- phenote/trunk/src/java/phenote/config/Config.java 2010-07-16 18:32:51 UTC (rev 3454) +++ phenote/trunk/src/java/phenote/config/Config.java 2010-07-16 19:02:55 UTC (rev 3455) @@ -297,19 +297,19 @@ try { jarConfigUrl = new URL("file://" + jarConfig); } catch (MalformedURLException me) { - LOG.debug("Couldn't make URL for jar config " + jarConfigUrl); + LOG.debug("Couldn't make URL for config from jar or application directory: " + jarConfigUrl); writeMyPhenoteDefaultFile(masterConfig); // ? master? return jarConfig; } try { FileUtil.copyUrlToFile(jarConfigUrl, localFile); } catch (IOException io) { - LOG.debug("Couldn't copy jar config " + jarConfig + " to " + localFile); + LOG.debug("Couldn't copy config file from jar or application directory (" + jarConfig + ") to " + localFile); } writeMyPhenoteDefaultFile(masterConfig); // ? master? return jarConfig; } catch (FileNotFoundException fnf) { - LOG.error("Couldn't find conf file from jar?!: " + fnf.getMessage()); + LOG.error("Couldn't find conf file from jar or application directory: " + fnf.getMessage()); throw new ConfigException(fnf); } } @@ -335,26 +335,26 @@ else { try { String jarConfig = getConfigUrl(configFile).getFile(); - LOG.error("Also failed to open config file in user's .phenote: " + mode.localFileString() + "--trying to use one from jar: " + jarConfig); + LOG.error("Also failed to open config file in user's .phenote: " + mode.localFileString() + "--trying to use one from jar or application directory: " + jarConfig); // Try to copy jar one to .phenote // LOG.debug("About to try copying " + jarConfig + " to " + localFile); // DEL URL jarConfigUrl = null; try { jarConfigUrl = new URL("file://" + jarConfig); } catch (MalformedURLException me) { - LOG.debug("Couldn't make URL for jar config " + jarConfigUrl); + LOG.debug("Couldn't make URL for config from jar or application directory " + jarConfigUrl); writeMyPhenoteDefaultFile(masterConfig); // ? master? return jarConfig; } try { FileUtil.copyUrlToFile(jarConfigUrl, localFile); } catch (IOException io) { - LOG.debug("Couldn't copy jar config " + jarConfig + " to " + localFile); + LOG.debug("Couldn't copy config from jar or application directory (" + jarConfig + ") to " + localFile); } writeMyPhenoteDefaultFile(masterConfig); // ? master? return jarConfig; } catch (FileNotFoundException fnf) { - LOG.error("Couldn't find conf file from jar?!: " + fnf.getMessage()); + LOG.error("Couldn't find conf file in jar or application directory: " + fnf.getMessage()); throw new ConfigException(fnf); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |