From e42f856b56ce472150551d6d067526b47a45c63f Mon Sep 17 00:00:00 2001 From: Zakhar Bessarab Date: Mon, 3 Jul 2023 15:12:40 +0400 Subject: [PATCH] app/vmagent/remotewrite: fix error message for auth config (#4545) Error message will be present for any auth error, but message claims an error is about OAuth2 configuration which is confusing. Signed-off-by: Zakhar Bessarab --- app/vmagent/remotewrite/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmagent/remotewrite/client.go b/app/vmagent/remotewrite/client.go index 3a19cca8e5..36add0c3f6 100644 --- a/app/vmagent/remotewrite/client.go +++ b/app/vmagent/remotewrite/client.go @@ -257,7 +257,7 @@ func getAuthConfig(argIdx int) (*promauth.Config, error) { } authCfg, err := opts.NewConfig() if err != nil { - return nil, fmt.Errorf("cannot populate OAuth2 config for remoteWrite idx: %d, err: %w", argIdx, err) + return nil, fmt.Errorf("cannot populate auth config for remoteWrite idx: %d, err: %w", argIdx, err) } return authCfg, nil }