better failure message when failing to load settings

This commit is contained in:
Shay Banon 2012-01-24 19:52:04 +02:00
parent 68a0dca577
commit 01d8305af3
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ public class ImmutableSettings implements Settings {
Map<String, String> loadedSettings = settingsLoader.load(source);
put(loadedSettings);
} catch (Exception e) {
throw new SettingsException("Failed to load settings from [" + source + "]");
throw new SettingsException("Failed to load settings from [" + source + "]", e);
}
return this;
}