chore: improve error message when can't find remote schemaconfig file (#14496)

Signed-off-by: Edward Welch <edward.welch@grafana.com>
pull/14667/head
Ed Welch 2 years ago committed by GitHub
parent 31eea9042a
commit 08416d4a28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pkg/logcli/query/query.go

@ -427,7 +427,7 @@ func getLatestConfig(client chunk.ObjectClient, orgID string) (*config.SchemaCon
if err != errNotExists {
return nil, err
}
return nil, errNotExists
return nil, errors.Wrap(err, "could not find a schema config file matching any of the known patterns. First verify --org-id is correct. Then check the root of the bucket for a file with `schemaconfig` in the name. If no such file exists it may need to be created or re-synced from the source.")
}
// DoLocalQuery executes the query against the local store using a Loki configuration file.

Loading…
Cancel
Save