# NodeJS Elasticsearch client

**URL:** <https://discuss.elastic.co/t/nodejs-elasticsearch-client/70706>\
**Category:** Elasticsearch\
**Created:** [January 5, 2017, 4:18pm UTC](https://discuss.elastic.co/t/nodejs-elasticsearch-client/70706 "2017-01-05T16:18:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexNodex](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@AlexNodex](https://discuss.elastic.co/u/AlexNodex)\
**Post date:** [January 5, 2017, 4:18pm UTC](https://discuss.elastic.co/t/nodejs-elasticsearch-client/70706/1 "2017-01-05T16:18:28Z")

</div>

Good afternoon.

Is there a way to catch() an error from elasticsearch javascript client and get certain parts of the error rather than the entire message?

I would like to give meanigful errors back to requests and your errors are to verbose all in one line...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 2, 2017, 4:18pm UTC](https://discuss.elastic.co/t/nodejs-elasticsearch-client/70706/2 "2017-02-02T16:18:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
