omc / searchyll

GNU General Public License v3.0
48 stars 15 forks source link

Write Elasticsearch API errors to $stderr #39

Closed alranel closed 5 years ago

alranel commented 5 years ago

As of now, Searchyll gives no feedback about success or failure of API requests. I'm getting a "Bad Request" from a proxied Elasticsearch, and it took me a while before realizing it because the Searchyll job seemed to succeed. This code prints the error to the console and exits the build, so that the error can be investigated.