From 60a45cb640a89ceee499fac258c7be6c4309bb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Rabenstein?= Date: Fri, 26 Jul 2019 15:17:13 +0200 Subject: [PATCH] Move suggestion about admin API to appropriate place (#1355) Fixes #1354 Signed-off-by: beorn7 --- pkg/promclient/promclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/promclient/promclient.go b/pkg/promclient/promclient.go index 054d1efc9a..5eca23b64c 100644 --- a/pkg/promclient/promclient.go +++ b/pkg/promclient/promclient.go @@ -76,7 +76,7 @@ func ExternalLabels(ctx context.Context, logger log.Logger, base *url.URL) (labe } if resp.StatusCode != 200 { - return nil, errors.Errorf("is 'web.enable-admin-api' flag enabled? got non-200 response code: %v, response: %v", resp.StatusCode, string(b)) + return nil, errors.Errorf("got non-200 response code: %v, response: %v", resp.StatusCode, string(b)) } var d struct { @@ -242,7 +242,7 @@ func Snapshot(ctx context.Context, logger log.Logger, base *url.URL, skipHead bo } if resp.StatusCode != 200 { - return "", errors.Errorf("got non-200 response code: %v, response: %v", resp.StatusCode, string(b)) + return "", errors.Errorf("is 'web.enable-admin-api' flag enabled? got non-200 response code: %v, response: %v", resp.StatusCode, string(b)) } var d struct {