From 01d8305af3dc277753eaee7c9c2c6d417fc9e01b Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 24 Jan 2012 19:52:04 +0200 Subject: [PATCH] better failure message when failing to load settings --- .../org/elasticsearch/common/settings/ImmutableSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/common/settings/ImmutableSettings.java b/src/main/java/org/elasticsearch/common/settings/ImmutableSettings.java index 2679e19683e..d1d89de1553 100644 --- a/src/main/java/org/elasticsearch/common/settings/ImmutableSettings.java +++ b/src/main/java/org/elasticsearch/common/settings/ImmutableSettings.java @@ -593,7 +593,7 @@ public class ImmutableSettings implements Settings { Map 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; }