datasources: querier: more robust error handling, and report no errors for single-tenant (#106288)

* datasources: querier: more robust error handling, and report no error for st

* do not leak error details out

* apply the change to the real file, not just to the test
This commit is contained in:
Gábor Farkas
2025-06-16 14:12:37 +02:00
committed by GitHub
parent 7273e4ca1c
commit 5d54289509
3 changed files with 7 additions and 5 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ package query
import (
"bytes"
"context"
"errors"
"fmt"
"net/http"
"net/http/httptest"
@@ -172,5 +171,5 @@ func (m mockClient) CheckHealth(ctx context.Context, req *backend.CheckHealthReq
}
func (m mockClient) GetInstanceConfigurationSettings(_ context.Context) (clientapi.InstanceConfigurationSettings, error) {
return clientapi.InstanceConfigurationSettings{}, errors.New("get instance configuration settings is not implemented")
return clientapi.InstanceConfigurationSettings{}, nil
}