From 7ef73b866af780d5785433c60b1cb92f41d6ffdd Mon Sep 17 00:00:00 2001 From: Danny Adams Date: Thu, 19 Jan 2023 16:41:32 -0500 Subject: [PATCH] Update for Beta Connector. --- src/internal/connector/graph/service_helper.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internal/connector/graph/service_helper.go b/src/internal/connector/graph/service_helper.go index f6acdb9d0..5d680c7f8 100644 --- a/src/internal/connector/graph/service_helper.go +++ b/src/internal/connector/graph/service_helper.go @@ -59,6 +59,9 @@ func CreateBetaAdapter(tenant, client, secret string) (*beta.GraphRequestAdapter cred, []string{"https://graph.microsoft.com/.default"}, ) + if err != nil { + return nil, errors.Wrap(err, "creating beta auth token") + } httpClient := CreateHTTPClient()