throw custom error
I use @trpc/client as the backbone of a backend. This backend throws custom exceptions based on httpexception. How can I customize exceptions throw in the client?
I have tried to create a custom link, but observer.error(error) only accepts TrpcError instances
any ideas?
0 Replies