Check more complete exception message for missing setting value

This commit is contained in:
Ryan Ernst 2016-04-11 14:35:37 -07:00
parent 31ca8fa411
commit 6380560dbb
1 changed files with 1 additions and 1 deletions

View File

@ -85,6 +85,6 @@ public class YamlSettingsLoaderTests extends ESTestCase {
ElasticsearchParseException e = expectThrows(ElasticsearchParseException.class, () -> {
Settings.builder().loadFromPath(tmp);
});
assertTrue(e.getMessage(), e.getMessage().contains("null-valued setting found for key [foo]"));
assertTrue(e.getMessage(), e.getMessage().contains("null-valued setting found for key [foo] found at line"));
}
}