diff --git a/packages/api/src/@core/connections/crm/services/affinity/affinityCrm.service.ts b/packages/api/src/@core/connections/crm/services/affinity/affinityCrm.service.ts index 1fc6242fe..3beed3ff7 100644 --- a/packages/api/src/@core/connections/crm/services/affinity/affinityCrm.service.ts +++ b/packages/api/src/@core/connections/crm/services/affinity/affinityCrm.service.ts @@ -99,7 +99,7 @@ export class AffinityConnectionService implements ICrmConnectionService { return { access_token, refresh_token, expires_in }; } catch (error) { this.logger.error('Error refreshing token for Affinity', error); - throw new Error('Failed to refresh token for Affinity'); + throw new Error(`Failed to refresh token for Affinity: ${error.message}`); } } }