diff --git a/collect/queue.go b/collect/queue.go index 34e9dcbd8b..a7b5f8e1db 100644 --- a/collect/queue.go +++ b/collect/queue.go @@ -175,6 +175,10 @@ func SendDataPoints(dps []*opentsdb.DataPoint, tsdb string) (*http.Response, err if UseNtlm { resp, err := ntlm.DoNTLMRequest(DefaultClient, req) + if err != nil { + return nil, err + } + if resp.StatusCode == 401 { slog.Errorf("Scollector unauthorized to post data points to tsdb. Terminating.") os.Exit(1)