Handling errors on the front-end - tRPC