From 08416d4a28870605885b52fffac8353cea0beee8 Mon Sep 17 00:00:00 2001 From: Ed Welch Date: Wed, 30 Oct 2024 11:56:12 -0400 Subject: [PATCH] chore: improve error message when can't find remote schemaconfig file (#14496) Signed-off-by: Edward Welch --- pkg/logcli/query/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/logcli/query/query.go b/pkg/logcli/query/query.go index ba21dade98..804d697380 100644 --- a/pkg/logcli/query/query.go +++ b/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.