Closed ntgussoni closed 3 years ago
I might've been too tired when checking this. Just double checked and my change fixes nothing because nothing seems to be broken on the first place.
I'm closing this and I'll do some further investigation on my side
This PR makes sure that custom errors get serialized properly.
I have a custom error extending AuthorizationError in blitz and it wasn't being serialized. This change checks if the prototype is an instanceof Error as well