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