Skip to content

Commit 2d4e0c7

Browse files
authored
Merge pull request #190 from deploymenttheory/dev
Fix error handling in BasicAuthTokenAcquisition function
2 parents bb2aa11 + a324478 commit 2d4e0c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authenticationhandler/basicauthentication.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (h *AuthTokenHandler) BasicAuthTokenAcquisition(apiHandler apihandler.APIHa
3434

3535
resp, err := httpClient.Do(req)
3636
if err != nil {
37-
h.Logger.LogError("authentication_request_error", "POST", authenticationEndpoint, resp.StatusCode, resp.Status, err, "Failed to make request for token")
37+
h.Logger.LogError("authentication_request_error", "POST", authenticationEndpoint, 0, "", err, "Failed to make request for token")
3838
return err
3939
}
4040
defer resp.Body.Close()

0 commit comments

Comments
 (0)