Merge pull request #1429 from someones/es_error_propagation

Add missing error check from #1402
This commit is contained in:
Arik Fraimovich 2016-11-25 18:19:44 +02:00 committed by GitHub
commit 6f52c50adc

View File

@ -369,7 +369,7 @@ class ElasticSearch(BaseElasticSearch):
url = "{0}/{1}/_search".format(self.server_url, index_name)
mapping_url = "{0}/{1}/_mapping".format(self.server_url, index_name)
mappings = self._get_mappings(mapping_url)
mappings, error = self._get_mappings(mapping_url)
if error:
return None, error