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