Closed t1m0thy closed 7 months ago
Thank you!
@all-contributors please add @t1m0thy for code
@smeijer
I've put up a pull request to add @t1m0thy! :tada:
:tada: This PR is included in version 3.11.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Location IQ throws a 404 error when it is unable to locate any match. such as when typing "san Angl" and there are no places that begin with that string. To repair, the parse method checks for the
response.data.error
in the response, returns an empty string if it has an error, and otherwise, hands back up to the parent class.I am new to this library (and not a typescript expert), so while I believe this works, if there is a better way to handle errors, happy to learn!