From aec2c78bb34d038ffb42ed22ae94a60f326c7b69 Mon Sep 17 00:00:00 2001 From: thejoeker12 Date: Fri, 21 Jun 2024 13:42:49 +0100 Subject: [PATCH] test return --- jamf/jamfprointegration/auth_oauth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jamf/jamfprointegration/auth_oauth.go b/jamf/jamfprointegration/auth_oauth.go index b88286b..8d43e68 100644 --- a/jamf/jamfprointegration/auth_oauth.go +++ b/jamf/jamfprointegration/auth_oauth.go @@ -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)