Skip to content

Commit

Permalink
Merge pull request #21 from silvermine/elasticsearch-error-logging
Browse files Browse the repository at this point in the history
fix: provide error from AES response to CFN
  • Loading branch information
jthomerson committed Mar 12, 2021
2 parents a773cf7 + 1a0f6c9 commit 1282d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ElasticSearchClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = Class.extend({
if (response.statusCode === 200) {
deferred.resolve(data);
} else {
deferred.reject(data);
deferred.reject(new Error('Request failed with ' + response.statusCode + '. Body: ' + JSON.stringify(data.body)));
}
});

Expand Down

0 comments on commit 1282d9e

Please sign in to comment.