When config.trace=loads, log IOException for each load

This commit is contained in:
Havoc Pennington 2013-07-12 15:06:37 -04:00
parent daa893d206
commit a233ac9332

View File

@ -173,6 +173,8 @@ public abstract class Parseable implements ConfigParseable {
if (finalOptions.getAllowMissing()) {
return SimpleConfigObject.emptyMissing(origin);
} else {
trace("exception loading " + origin.description() + ": " + e.getClass().getName()
+ ": " + e.getMessage());
throw new ConfigException.IO(origin, e.getMessage(), e);
}
}