lib/storage: mention the accountID and projectID in error message when filtering out other (accountID, projectID) entries

This commit is contained in:
Aliaksandr Valialkin 2019-06-10 14:43:39 +03:00
parent d54f5fec0b
commit 0ccedbdfd2

View file

@ -1714,7 +1714,7 @@ func (is *indexSearch) getMetricIDsForRecentHours(tr TimeRange, maxMetrics int,
}
}
if err := ts.Error(); err != nil {
return nil, false, fmt.Errorf("cannot filter out metricIDs by (accountID, projectID): %s", err)
return nil, false, fmt.Errorf("cannot filter out metricIDs by (accountID=%d, projectID=%d): %s", accountID, projectID, err)
}
return metricIDs, true, nil
}