You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this was done to prevent errors when subclassing Error (IIRC, this was an issue with older babel / browser versions). You're right that it's not ideal, and we should change this to be real errors, but make sure that all the properties we set are still correctly set (otherwise it's a breaking change)
It looks all errors thrown from the algolia client are plain objects.
Was it made for a specific reason?
Because it can cause some issue in users application as many developers expect the thrown error as a type of Error.
Short example:
I was expecting that stack trace will be logged, but I got an object in the console for this example.
The text was updated successfully, but these errors were encountered: