// AddTabletErrorToSplitQueryResult will mutate a SplitQueryResult struct to fill in the Err // field with details from the TabletError. func AddTabletErrorToSplitQueryResult(err error, reply *proto.SplitQueryResult) { if err == nil { return } reply.Err = rpcErrFromTabletError(err) }