Converting internal error format to TRPC shape? - tRPC