|
From: <ev...@us...> - 2011-04-26 10:10:20
|
Revision: 1526
http://rails.svn.sourceforge.net/rails/?rev=1526&view=rev
Author: evos
Date: 2011-04-26 10:10:14 +0000 (Tue, 26 Apr 2011)
Log Message:
-----------
Add "caused by" trace to exceptions in loading a property file
Modified Paths:
--------------
trunk/18xx/rails/util/Config.java
Modified: trunk/18xx/rails/util/Config.java
===================================================================
--- trunk/18xx/rails/util/Config.java 2011-04-20 16:01:53 UTC (rev 1525)
+++ trunk/18xx/rails/util/Config.java 2011-04-26 10:10:14 UTC (rev 1526)
@@ -526,7 +526,7 @@
* This method loads a property file.
*
* @param properties - the property to store
- * @param filepath - filname as a String.
+ * @param filepath - filename as a String.
* @param resource - if TRUE, loaded from jar (via classloader), otherwise from filesystem
* @return TRUE if load was successful
*/
@@ -544,7 +544,7 @@
properties.load(inFile);
} catch (Exception e) {
log.error(e + " whilst loading properties file "
- + filepath);
+ + filepath, e);
result = false;
}
return result;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|