Skip to content

Commit

Permalink
test return
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeker12 committed Jun 21, 2024
1 parent 06091e5 commit aec2c78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jamf/jamfprointegration/auth_oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ func (a *oauth) getNewToken() error {
return fmt.Errorf("bad request: %v", resp)
}

return fmt.Errorf("ERROR CODE: %v", resp.StatusCode)

defer resp.Body.Close()

bodyBytes, err := io.ReadAll(resp.Body)
Expand Down

0 comments on commit aec2c78

Please sign in to comment.