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()