grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.96k stars 3.46k forks source link

fix: logcli: Check for errors before checking for `exists` when fetching data #14780

Closed DylanGuedes closed 1 week ago

DylanGuedes commented 2 weeks ago

What this PR does / why we need it: When getting data from object storage, we're first checking for the exists return and only then for the error returned. Everytime an error is returned an exists=false is also returned, and that is taken more precedence than the error itself.

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer:

Checklist