appbaseio / appbase-js

appbase.io search client library for JavaScript
MIT License
42 stars 18 forks source link

Improve error handling #38

Closed dhruvdutt closed 6 years ago

dhruvdutt commented 6 years ago

Fixes #36 #163

divyanshu013 commented 6 years ago

Why is the fetch request not getting caught in case of status >= 400?

dhruvdutt commented 6 years ago

@divyanshu013 I think that's how it works. An error is not an exception. :thinking: :smile:

I think some fetch libraries might have different implementation though.

Further reading: #36 #18, #203.