Skip to content

Commit

Permalink
improve error message when can't find remote schemaconfig file
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Welch <[email protected]>
  • Loading branch information
slim-bean committed Oct 15, 2024
1 parent 5d57a03 commit 18f4843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logcli/query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.New("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.
Expand Down

0 comments on commit 18f4843

Please sign in to comment.