Best way to wrap procedure for error handling - tRPC