@cumulus/es-client 9.2.3 → 9.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/indexer.js +7 -1
  2. package/package.json +8 -8
package/indexer.js CHANGED
@@ -74,7 +74,13 @@ async function genericRecordUpdate(esClient, id, doc, index, type, parent) {
74
74
 
75
75
  // adding or replacing record to ES
76
76
  const actualEsClient = esClient || (await Search.es());
77
- const indexResponse = await actualEsClient.index(params);
77
+ let indexResponse;
78
+ try {
79
+ indexResponse = await actualEsClient.index(params);
80
+ } catch (error) {
81
+ logger.error(`Error thrown on index ${JSON.stringify(error)}`);
82
+ throw error;
83
+ }
78
84
  return indexResponse.body;
79
85
  }
80
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/es-client",
3
- "version": "9.2.3",
3
+ "version": "9.4.1",
4
4
  "description": "Utilities for working with Elasticsearch",
5
5
  "keywords": [
6
6
  "CUMULUS",
@@ -30,10 +30,10 @@
30
30
  "author": "Cumulus Authors",
31
31
  "license": "Apache-2.0",
32
32
  "dependencies": {
33
- "@cumulus/common": "9.2.3",
34
- "@cumulus/errors": "9.2.3",
35
- "@cumulus/logger": "9.2.3",
36
- "@cumulus/message": "9.2.3",
33
+ "@cumulus/common": "9.4.1",
34
+ "@cumulus/errors": "9.4.1",
35
+ "@cumulus/logger": "9.4.1",
36
+ "@cumulus/message": "9.4.1",
37
37
  "@elastic/elasticsearch": "^5.6.20",
38
38
  "aws-elasticsearch-connector": "8.2.0",
39
39
  "aws-sdk": "^2.585.0",
@@ -42,9 +42,9 @@
42
42
  "p-limit": "^1.2.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@cumulus/aws-client": "9.2.3",
46
- "@cumulus/test-data": "9.2.3",
45
+ "@cumulus/aws-client": "9.4.1",
46
+ "@cumulus/test-data": "9.4.1",
47
47
  "p-each-series": "^2.1.0"
48
48
  },
49
- "gitHead": "91c94e8972edd3f35b6a1f7e22f81ab3f3f1c3ee"
49
+ "gitHead": "fce4415918c43a6a14d46ac7d9572f5a97a98a45"
50
50
  }