From 92502b4b86c37c4f9c15ad5603d10fc6eaadb7c2 Mon Sep 17 00:00:00 2001 From: Dhruv Kumar Date: Wed, 5 Jun 2024 11:49:29 +0530 Subject: [PATCH] fix: #448 --- .../connections/crm/services/affinity/affinityCrm.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`); } } }