How to correctly handle errors using trpc client - tRPC