jikan-me / jikan-rest

The REST API for Jikan
https://docs.api.jikan.moe/
MIT License
413 stars 268 forks source link

:bulb: `Typesense\Exceptions\ObjectNotFound` errors should be overriden with more descriptive error message #478

Open pushrbx opened 5 months ago

pushrbx commented 5 months ago

There is a need to add some sort of override to let people know that the Typesense API error saying that "xyz field is missing" error only happens when their typesense instance is empty when self hosting.

Example error: Could not find a field namedrankin the schema for sorting.

Expected behaviour instead:

Could not find a field named `rank` in the schema for sorting. 
Please check whether you have data in your typesense instance. 
If the problem persists after populating typesense with data please raise an issue with the link below.

Related issues: #477 #476