Better errors
goldylucks opened this issue · 1 comments
goldylucks commented
Thanks for a FANTASTIC library, you guys ROCK!
So I'm using this function:
return orderByDistance({ latitude, longitude }, restaurants)
and I get this error:
Now I have to go down the rabbit hole of geolib
's internals to understand what is causing the error.
Would be a better DX to see something like WARNING - latitude is missing for item 5 on the list
I can submit a PR with some guidance :)
manuelbieh commented
Thank you! That’s a great idea! Feel free to do so!