diff --git a/src/pkg/services/m365/api/contacts.go b/src/pkg/services/m365/api/contacts.go index 1eb343581..92494eed8 100644 --- a/src/pkg/services/m365/api/contacts.go +++ b/src/pkg/services/m365/api/contacts.go @@ -186,8 +186,11 @@ func (c Contacts) GetItem( Contacts(). ByContactId(itemID). Get(ctx, options) + if err != nil { + return nil, nil, clues.Stack(err) + } - return cont, ContactInfo(cont), clues.Stack(err).OrNil() + return cont, ContactInfo(cont), nil } func (c Contacts) PostItem(