From aa26b94f33fcee8ebb1229a8c5758b26907ddf1b Mon Sep 17 00:00:00 2001 From: BigFish <736759290@qq.com> Date: Wed, 1 Jul 2020 06:35:26 +0800 Subject: [PATCH] fix: spelling mistakes (#594) Co-authored-by: Aliaksandr Valialkin --- app/vmalert/datasource/vm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmalert/datasource/vm.go b/app/vmalert/datasource/vm.go index e622d159d2..65c3db9e01 100644 --- a/app/vmalert/datasource/vm.go +++ b/app/vmalert/datasource/vm.go @@ -85,7 +85,7 @@ func (s *VMStorage) Query(ctx context.Context, query string) ([]Metric, error) { defer func() { _ = resp.Body.Close() }() if resp.StatusCode != http.StatusOK { body, _ := ioutil.ReadAll(resp.Body) - return nil, fmt.Errorf("datasource returns unxeprected response code %d for %s with err %w; reponse body: %s", resp.StatusCode, req.URL, err, body) + return nil, fmt.Errorf("datasource returns unexpected response code %d for %s with err %w. Reponse body %s", resp.StatusCode, req.URL, err, body) } r := &response{} if err := json.NewDecoder(resp.Body).Decode(r); err != nil {